Fix T73283: Shadows checkbox affects Custom Distance active state
This appears to just have been a simple copy/paste mistake
This commit is contained in:
parent
04e318de3a
commit
ed4bf2dc61
Notes:
blender-bot
2023-02-14 00:20:19 +01:00
Referenced by issue #73283, Interface, Eevee: when Shadows for lamp off, Custom distancework but it`s checkbox id dimmed
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue