forked from blender/blender-addons
Fix crash when hydra render plugin isn't loaded. #16
@ -46,11 +46,13 @@ class StormHydraRenderEngine(bpy_hydra.HydraRenderEngine):
|
|||||||
|
|
||||||
def update(self, data, depsgraph):
|
def update(self, data, depsgraph):
|
||||||
super().update(data, depsgraph)
|
super().update(data, depsgraph)
|
||||||
self._sync_usd_stage()
|
if self.engine_ptr:
|
||||||
|
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)
|
||||||
self._sync_usd_stage()
|
if self.engine_ptr:
|
||||||
|
self._sync_usd_stage()
|
||||||
|
|
||||||
|
|
||||||
register, unregister = bpy.utils.register_classes_factory((
|
register, unregister = bpy.utils.register_classes_factory((
|
||||||
|
Loading…
Reference in New Issue
Block a user