From 2fd36b0ab7fe9553e0950d43e73c8eba2c71034f Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Thu, 17 Jul 2025 15:03:50 +0200 Subject: [PATCH] Fix #142103: Animation decorator not working on Light Temperature value When having a checkbox and a value both in one row together with an animation decorator it is questionable whether the decorator should act on animating the checkbox or the corresponding value. We had similar cases before (e.g. 7c04ef210e0e) In this case as well, one would think it is more desirable to animate the actual Temperature **value** (instead of the checkbox), so this is what this PR does. Pull Request: https://projects.blender.org/blender/blender/pulls/142192 --- intern/cycles/blender/addon/ui.py | 2 ++ scripts/startup/bl_ui/properties_data_light.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/intern/cycles/blender/addon/ui.py b/intern/cycles/blender/addon/ui.py index d7399e87886..1f5ed5c43e7 100644 --- a/intern/cycles/blender/addon/ui.py +++ b/intern/cycles/blender/addon/ui.py @@ -1518,6 +1518,7 @@ class CYCLES_LIGHT_PT_light(CyclesButtonsPanel, Panel): col = layout.column() heading = col.column(align=True, heading="Temperature") row = heading.column(align=True).row(align=True) + row.use_property_decorate = False row.prop(light, "use_temperature", text="") # Don't show color preview for now, it is grayed out so the color # is not accurate. Would not a change in the UI code to allow @@ -1531,6 +1532,7 @@ class CYCLES_LIGHT_PT_light(CyclesButtonsPanel, Panel): sub = row.row() sub.active = light.use_temperature sub.prop(light, "temperature", text="") + row.prop_decorator(light, "temperature") if light.use_temperature: col.prop(light, "color", text="Tint") diff --git a/scripts/startup/bl_ui/properties_data_light.py b/scripts/startup/bl_ui/properties_data_light.py index 492559f9185..902af19d3c4 100644 --- a/scripts/startup/bl_ui/properties_data_light.py +++ b/scripts/startup/bl_ui/properties_data_light.py @@ -91,6 +91,7 @@ class DATA_PT_EEVEE_light(DataButtonsPanel, Panel): col = layout.column() heading = col.column(align=True, heading="Temperature") row = heading.column(align=True).row(align=True) + row.use_property_decorate = False row.prop(light, "use_temperature", text="") # Don't show color preview for now, it is grayed out so the color # is not accurate. Would not a change in the UI code to allow @@ -104,6 +105,7 @@ class DATA_PT_EEVEE_light(DataButtonsPanel, Panel): sub = row.row() sub.active = light.use_temperature sub.prop(light, "temperature", text="") + row.prop_decorator(light, "temperature") if light.use_temperature: col.prop(light, "color", text="Tint")