[Bf-blender-cvs] [ed4bf2dc61a] master: Fix T73283: Shadows checkbox affects Custom Distance active state

William Reynish noreply at git.blender.org
Tue Jan 21 09:59:24 CET 2020


Commit: ed4bf2dc61ac1f1da71815b542749243101069db
Author: William Reynish
Date:   Tue Jan 21 09:59:22 2020 +0100
Branches: master
https://developer.blender.org/rBed4bf2dc61ac1f1da71815b542749243101069db

Fix T73283: Shadows checkbox affects Custom Distance active state

This appears to just have been a simple copy/paste mistake

===================================================================

M	release/scripts/startup/bl_ui/properties_data_light.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/properties_data_light.py b/release/scripts/startup/bl_ui/properties_data_light.py
index 6f730cf3307..cf894b48e1e 100644
--- a/release/scripts/startup/bl_ui/properties_data_light.py
+++ b/release/scripts/startup/bl_ui/properties_data_light.py
@@ -134,17 +134,15 @@ class DATA_PT_EEVEE_light_distance(DataButtonsPanel, Panel):
         light = context.light
 
         layout = self.layout
-        layout.active = light.use_shadow
         layout.prop(light, "use_custom_distance", text="")
 
     def draw(self, context):
         layout = self.layout
         light = context.light
+        layout.active = light.use_custom_distance
         layout.use_property_split = True
 
-        col = layout.column()
-
-        col.prop(light, "cutoff_distance", text="Distance")
+        layout.prop(light, "cutoff_distance", text="Distance")
 
 
 class DATA_PT_EEVEE_shadow(DataButtonsPanel, Panel):
@@ -311,7 +309,8 @@ class DATA_PT_falloff_curve(DataButtonsPanel, Panel):
     def draw(self, context):
         light = context.light
 
-        self.layout.template_curve_mapping(light, "falloff_curve", use_negative_slope=True)
+        self.layout.template_curve_mapping(
+            light, "falloff_curve", use_negative_slope=True)
 
 
 class DATA_PT_custom_props_light(DataButtonsPanel, PropertyPanel, Panel):



More information about the Bf-blender-cvs mailing list