forked from blender/blender
Fix wrong path for PXR_MTLX_STDLIB_SEARCH_PATHS #30
@ -66,10 +66,9 @@ class HydraRenderEngine(bpy.types.RenderEngine):
|
||||
def register(cls):
|
||||
_bpy_hydra.init()
|
||||
root_folder = "blender.shared" if platform.system() == 'Windows' else "lib"
|
||||
os.environ['PXR_MTLX_STDLIB_SEARCH_PATHS'] = os.pathsep.join([Path(bpy.app.binary_path).parent /
|
||||
f"{root_folder}/materialx/libraries",
|
||||
os.environ.get('PXR_MTLX_STDLIB_SEARCH_PATHS', "")
|
||||
])
|
||||
os.environ['PXR_MTLX_STDLIB_SEARCH_PATHS'] = os.pathsep.join([
|
||||
Path(bpy.app.binary_path).parent / f"{root_folder}/materialx/libraries",
|
||||
os.environ.get('PXR_MTLX_STDLIB_SEARCH_PATHS', "")])
|
||||
|
||||
@classmethod
|
||||
def unregister(cls):
|
||||
|
Loading…
Reference in New Issue
Block a user