Skip to content

Commit

Permalink
Simplify JavaScript bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
jstone-lucasfilm authored Oct 12, 2024
1 parent e6668af commit 1835f9a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions source/JsMaterialX/JsMaterialXCore/JsElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ namespace mx = MaterialX;

#define BIND_ELEMENT_CHILD_FUNC_INSTANCE(NAME, T) \
BIND_MEMBER_FUNC("addChild" #NAME, mx::Element, addChild<T>, 0, 1, stRef) \
BIND_MEMBER_FUNC("getChildOfType" #NAME, mx::Element, getChildOfType<T>, 1, 2, stRef) \
BIND_MEMBER_FUNC("getChildrenOfType" #NAME, mx::Element, getChildrenOfType<T>, 0, 2, stRef) \
.function("removeChildOfType" #NAME, &mx::Element::removeChildOfType<T>) \
BIND_MEMBER_FUNC("isA" #NAME, mx::Element, isA<T>, 0, 1, stRef) \
.function("asA" #NAME, ems::select_overload<std::shared_ptr<T>()>(&mx::Element::asA<T>))

Expand Down

0 comments on commit 1835f9a

Please sign in to comment.