forked from blender/blender-addons
BLEN-370: Find way not to modify PATH #5
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
# <pep8 compliant>
|
# <pep8 compliant>
|
||||||
import os
|
import os
|
||||||
|
import platform
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
@ -22,7 +23,8 @@ class StormHydraRenderEngine(HydraRenderEngine):
|
|||||||
@classmethod
|
@classmethod
|
||||||
def register(cls):
|
def register(cls):
|
||||||
super().register()
|
super().register()
|
||||||
os.environ['PXR_MTLX_STDLIB_SEARCH_PATHS'] = os.environ.get('PXR_MTLX_STDLIB_SEARCH_PATHS', '') + ';' + \
|
separator = ';' if platform.system() == 'Windows' else ':'
|
||||||
|
os.environ['PXR_MTLX_STDLIB_SEARCH_PATHS'] = os.environ.get('PXR_MTLX_STDLIB_SEARCH_PATHS', '') + separator + \
|
||||||
str(Path(bpy.app.binary_path).parent) + '/materialx/libraries;'
|
str(Path(bpy.app.binary_path).parent) + '/materialx/libraries;'
|
||||||
|
|
||||||
def get_delegate_settings(self, engine_type):
|
def get_delegate_settings(self, engine_type):
|
||||||
|
Loading…
Reference in New Issue
Block a user