forked from blender/blender
BLEN-356: Automatically configure PXR_MTLX_STDLIB_SEARCH_PATHS #9
@ -1513,6 +1513,10 @@ if(WITH_USD)
|
||||
absolute_include_dirs(../blender/io/usd)
|
||||
endif()
|
||||
|
||||
if(WITH_MATERIALX)
|
||||
add_definitions(-DWITH_MATERIALX)
|
||||
endif()
|
||||
|
||||
# Always install USD shared library and datafiles regardless if Blender
|
||||
# itself uses them, the bundled Python module still needs it.
|
||||
if((DEFINED LIBDIR) AND TARGETDIR_LIB)
|
||||
|
@ -477,7 +477,9 @@ int main(int argc,
|
||||
|
||||
#ifdef WITH_USD
|
||||
USD_ensure_plugin_path_registered();
|
||||
# ifdef WITH_MATERIALX
|
||||
George-Shakula marked this conversation as resolved
|
||||
USD_setup_usd_mtlx_environment();
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef WITH_PYTHON_MODULE
|
||||
|
Loading…
Reference in New Issue
Block a user
do we need
#ifdef WITH_MATERIALX
?It's not a requirement but it makes sense to wrap it into an #ifdef. Because if there is no mtlx there is also no usdMtlx