Skip to content

Commit

Permalink
blender: Fix blender 4.1 tag_redraw weirdness
Browse files Browse the repository at this point in the history
Why it worked before but doesn't anymore is anyone's guess. Moving that
call up a bit makes it do the thing again.
  • Loading branch information
vkoskiv committed Apr 8, 2024
1 parent 8a4ce9b commit 569fbe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/blender_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,11 @@ def draw_direct(bitmap):

def status_update_interactive(cb_info, args):
tag_redraw, update_stats, self = args
tag_redraw()
if info.finished_passes == self.cr_renderer.prefs.samples:
update_stats("Rendering done", "")
else:
update_stats("Sample {}".format(info.finished_passes), "")
tag_redraw()

class CrayRender(bpy.types.RenderEngine):
bl_idname = "C_RAY"
Expand Down

0 comments on commit 569fbe9

Please sign in to comment.