forked from blender/blender-addons
Fix crash when hydra render plugin isn't loaded. #16
@ -46,10 +46,12 @@ class StormHydraRenderEngine(bpy_hydra.HydraRenderEngine):
|
|||||||
|
|
||||||
def update(self, data, depsgraph):
|
def update(self, data, depsgraph):
|
||||||
super().update(data, depsgraph)
|
super().update(data, depsgraph)
|
||||||
|
if self.engine_ptr:
|
||||||
self._sync_usd_stage()
|
self._sync_usd_stage()
|
||||||
|
|
||||||
def view_update(self, context, depsgraph):
|
def view_update(self, context, depsgraph):
|
||||||
super().view_update(context, depsgraph)
|
super().view_update(context, depsgraph)
|
||||||
|
if self.engine_ptr:
|
||||||
self._sync_usd_stage()
|
self._sync_usd_stage()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user