From 8a8b23dd125c842843a7411441f2caf8396c87da Mon Sep 17 00:00:00 2001 From: "georgiy.m.markelov@gmail.com" Date: Fri, 28 Apr 2023 19:18:54 +0300 Subject: [PATCH] fix convert Path to string --- scripts/modules/bpy_hydra.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/modules/bpy_hydra.py b/scripts/modules/bpy_hydra.py index 7f7eea93519f..41acda4e99b3 100644 --- a/scripts/modules/bpy_hydra.py +++ b/scripts/modules/bpy_hydra.py @@ -67,7 +67,7 @@ class HydraRenderEngine(bpy.types.RenderEngine): _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", + str(Path(bpy.app.binary_path).parent / f"{root_folder}/materialx/libraries"), os.environ.get('PXR_MTLX_STDLIB_SEARCH_PATHS', "")]) @classmethod -- 2.30.2