Skip to content

Commit

Permalink
Switch back to "live" renders when doing preview renders to Blender's…
Browse files Browse the repository at this point in the history
… render view window.

We need to be able to get pixels from the display driver, at the end of render. Unfortunately, by the time
we request the last of the pixels, the renderer might have already shut down the display driver.
This change means we cannot
do non-incremental renders when rendering to Blender, unfortunately.
  • Loading branch information
Ian Hsieh committed Jan 4, 2022
1 parent fcb8459 commit 9715259
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rman_render.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,8 @@ def start_render(self, depsgraph, for_background=False):
return False

render_cmd = "prman"
if self.rman_render_into == 'blender':
render_cmd = "prman -live"
render_cmd = self._append_render_cmd(render_cmd)
self.sg_scene.Render(render_cmd)
if self.rman_render_into == 'blender':
Expand Down

0 comments on commit 9715259

Please sign in to comment.