Fix crash when hydra render plugin isn't loaded. #16

Merged
Bogdan Nagirniak merged 1 commits from BLEN-443 into storm-hydra-addon 2023-07-04 11:08:07 +02:00
Showing only changes of commit f70871b50a - Show all commits

View File

@ -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((