forked from blender/blender-addons
Fix rendering of Final render for Storm delegate. #17
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user