forked from blender/blender-addons
Add possibility to render USD file for testing purposes #14
@ -28,10 +28,8 @@ class StormHydraRenderEngine(bpy_hydra.HydraRenderEngine):
|
||||
def _sync_usd_stage(self):
|
||||
preferences = addon_preferences()
|
||||
dev = bpy.context.scene.hydra_storm.dev
|
||||
if preferences.dev_tools and dev.render_usd and dev.usd_file:
|
||||
if not self._usd_stage:
|
||||
if preferences.dev_tools and not self._usd_stage and dev.render_usd and dev.usd_file:
|
||||
self._usd_stage = Usd.Stage.Open(dev.usd_file)
|
||||
|
||||
if self._usd_stage:
|
||||
_bpy_hydra.engine_sync_usd(self.engine_ptr, self._usd_stage)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user