diff --git a/source/JsMaterialX/JsMaterialXCore/JsDocument.cpp b/source/JsMaterialX/JsMaterialXCore/JsDocument.cpp index 8abc54f8a0..18750666b7 100644 --- a/source/JsMaterialX/JsMaterialXCore/JsDocument.cpp +++ b/source/JsMaterialX/JsMaterialXCore/JsDocument.cpp @@ -23,10 +23,10 @@ EMSCRIPTEN_BINDINGS(document) .class_function("createDocument", &mx::Document::createDocument) .function("initialize", &mx::Document::initialize) .function("copy", &mx::Document::copy) - .function("importLibrary", &mx::Document::importLibrary) .function("setDataLibrary", &mx::Document::setDataLibrary) .function("getDataLibrary", &mx::Document::getDataLibrary) .function("hasDataLibrary", &mx::Document::hasDataLibrary) + .function("importLibrary", &mx::Document::importLibrary) .function("getReferencedSourceUris", ems::optional_override([](mx::Document &self) { mx::StringSet set = self.getReferencedSourceUris(); return ems::val::array(set.begin(), set.end());