Fix #122263: Pause Preview icon does not update

Happens when opening a file saved file with preview paused.
This fix covers the typical use-case when the property is modified
from the space it comes from.

Pull Request: https://projects.blender.org/blender/blender/pulls/122502
This commit is contained in:
Sergey Sharybin
2024-05-31 11:46:15 +02:00
committed by Sergey Sharybin
parent ee8e195946
commit 6359464507
@@ -315,6 +315,10 @@ def update_render_engine(self, context):
scene.update_render_engine()
def update_pause(self, context):
context.area.tag_redraw()
class CyclesRenderSettings(bpy.types.PropertyGroup):
device: EnumProperty(
@@ -339,6 +343,7 @@ class CyclesRenderSettings(bpy.types.PropertyGroup):
name="Pause Preview",
description="Pause all viewport preview renders",
default=False,
update=update_pause,
)
use_denoising: BoolProperty(