Skip to content

Commit

Permalink
attempt to fix JS bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
ld-kerley committed Mar 12, 2024
1 parent 062d337 commit 30de947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/JsMaterialX/JsMaterialXCore/JsDocument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ EMSCRIPTEN_BINDINGS(document)
.function("initialize", &mx::Document::initialize)
.function("copy", &mx::Document::copy)
// .function("importLibrary", &mx::Document::importLibrary)
BIND_MEMBER_FUNC("inportLibrary", mx::Document, importLibrary, 1, 2, bool)
BIND_MEMBER_FUNC("inportLibrary", mx::Document, importLibrary, 1, 2, const mx::ConstDocumentPtr&, bool)
.function("getReferencedSourceUris", ems::optional_override([](mx::Document &self) {
mx::StringSet set = self.getReferencedSourceUris();
return ems::val::array(set.begin(), set.end());
Expand Down

0 comments on commit 30de947

Please sign in to comment.