Skip to content

Commit

Permalink
Updating the arguments passed into mx::loadLibraries to better accomm…
Browse files Browse the repository at this point in the history
…odate relocating the MaterialX libraries folder.

Specify the libraries folder location with the PXR_MATERIALX_STDLIB_DIR variable.

Fixes #1586

(Internal change: 2183770)
  • Loading branch information
klucknav authored and pixar-oss committed Aug 19, 2021
1 parent a659da3 commit 225138b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pxr/imaging/hdSt/materialXFilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -458,10 +458,9 @@ HdSt_ApplyMaterialXFilter(
if (mtlxSdrNode) {

// Load Standard Libraries/setup SearchPaths (for mxDoc and mxShaderGen)
mx::FilePathVec libraryFolders = { "libraries", };
mx::FilePathVec libraryFolders;
mx::FileSearchPath searchPath;
searchPath.append(mx::FilePath(PXR_MATERIALX_STDLIB_DIR));
searchPath.append(mx::FilePath(PXR_MATERIALX_BASE_DIR));
mx::DocumentPtr stdLibraries = mx::createDocument();
mx::loadLibraries(libraryFolders, searchPath, stdLibraries);

Expand Down

0 comments on commit 225138b

Please sign in to comment.