Skip to content

Commit

Permalink
Fix settings disappearing
Browse files Browse the repository at this point in the history
  • Loading branch information
gregzaal committed Nov 25, 2020
1 parent bd1d6fa commit 6be20fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def draw_more_options_cycles(box, scene, light, material, node_strength, is_port
drawfalloff = False
if not light.data.use_nodes:
drawfalloff = False
if drawfalloff:
if drawfalloff and node_strength is not None:
col.prop(light, "GafferFalloff", text="Falloff")
if node_strength.type != 'LIGHT_FALLOFF' and light.GafferFalloff != 'quadratic':
col.label(text="Light Falloff node is missing", icon="ERROR")
Expand Down Expand Up @@ -556,7 +556,7 @@ def draw_world(context, layout, gaf_props, scene, prefs, icons):

if "_Light:_(" + light.name + ")_" in gaf_props.MoreExpand or gaf_props.MoreExpandAll:
if scene.render.engine == 'CYCLES':
draw_more_options_cycles(box, scene, light, material, node_strength, is_portal)
draw_more_options_cycles(box, scene, light, material, None, is_portal)
else:
draw_more_options_eevee(box, scene, light)
i += 1
Expand Down

0 comments on commit 6be20fd

Please sign in to comment.