Fix rendering of Final render for Storm delegate. #17

Merged
Bogdan Nagirniak merged 2 commits from BLEN-437 into storm-hydra-addon 2023-07-13 00:57:37 +02:00
Showing only changes of commit b6ffb55c16 - Show all commits

View File

@ -47,17 +47,10 @@ class StormHydraRenderEngine(bpy_hydra.HydraRenderEngine):
'maxLights': settings.max_lights, 'maxLights': settings.max_lights,
} }
def update(self, data, depsgraph): def _update(self, depsgraph):
# This is empty function because: bl_use_gpu_context = True. super()._update(depsgraph)
# Engine creation and syncing moved to render() function.
pass
def render(self, depsgraph):
super().update(None, depsgraph)
self._sync_usd_stage() self._sync_usd_stage()
super().render(depsgraph)
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: if self.engine_ptr: