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,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()