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)
|
absolute_include_dirs(../blender/io/usd)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(WITH_MATERIALX)
|
||||||
|
add_definitions(-DWITH_MATERIALX)
|
||||||
|
endif()
|
||||||
|
|
||||||
# Always install USD shared library and datafiles regardless if Blender
|
# Always install USD shared library and datafiles regardless if Blender
|
||||||
# itself uses them, the bundled Python module still needs it.
|
# itself uses them, the bundled Python module still needs it.
|
||||||
if((DEFINED LIBDIR) AND TARGETDIR_LIB)
|
if((DEFINED LIBDIR) AND TARGETDIR_LIB)
|
||||||
|
@ -477,8 +477,10 @@ int main(int argc,
|
|||||||
|
|
||||||
#ifdef WITH_USD
|
#ifdef WITH_USD
|
||||||
USD_ensure_plugin_path_registered();
|
USD_ensure_plugin_path_registered();
|
||||||
|
# ifdef WITH_MATERIALX
|
||||||
George-Shakula marked this conversation as resolved
|
|||||||
USD_setup_usd_mtlx_environment();
|
USD_setup_usd_mtlx_environment();
|
||||||
# endif
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef WITH_PYTHON_MODULE
|
#ifndef WITH_PYTHON_MODULE
|
||||||
/* First test for background-mode (#Global.background) */
|
/* First test for background-mode (#Global.background) */
|
||||||
|
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