Skip to content

Commit

Permalink
Fix sun lamps showing "Size" instead of "Angle"
Browse files Browse the repository at this point in the history
  • Loading branch information
gregzaal committed Mar 23, 2023
1 parent 0446ba3 commit fec7ff8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"name": "Gaffer",
"description": "Master your lighting workflow with easy access to light properties, HDRIs and other tools",
"author": "Greg Zaal",
"version": (3, 1, 14),
"version": (3, 1, 15),
"blender": (2, 90, 0),
"location": "3D View > Sidebar & World Settings > HDRI",
"warning": "",
Expand Down
4 changes: 4 additions & 0 deletions ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,8 @@ def draw_more_options_cycles(box, scene, light, material, node_strength, is_port
row = col.row(align=True)
else:
row.prop(light.data, "size")
elif light.data.type == "SUN":
row.prop(light.data, "angle")
else:
row.prop(light.data, "shadow_soft_size", text="Size")

Expand Down Expand Up @@ -338,6 +340,8 @@ def draw_more_options_eevee(box, scene, light):
row = col.row(align=True)
else:
row.prop(light.data, "size")
elif light.data.type == "SUN":
row.prop(light.data, "angle")
else:
row.prop(light.data, "shadow_soft_size", text="Size")

Expand Down

0 comments on commit fec7ff8

Please sign in to comment.