Skip to content

Commit

Permalink
Fix #151 cycles_visibility error
Browse files Browse the repository at this point in the history
  • Loading branch information
gregzaal committed Sep 26, 2022
1 parent d183437 commit d0b8a49
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
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, 13),
"version": (3, 1, 14),
"blender": (2, 90, 0),
"location": "3D View > Sidebar & World Settings > HDRI",
"warning": "",
Expand Down
10 changes: 5 additions & 5 deletions ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,8 @@ def draw_more_options_cycles(box, scene, light, material, node_strength, is_port
)
row.prop(light.data.cycles, "cast_shadow", text="Shadows", toggle=True)
row.separator()
row.prop(light.cycles_visibility, "diffuse", text="Diff", toggle=True)
row.prop(light.cycles_visibility, "glossy", text="Spec", toggle=True)
row.prop(light, "visible_diffuse", text="Diff", toggle=True)
row.prop(light, "visible_glossy", text="Spec", toggle=True)

if light.data.type == "SPOT":
row = col.row(align=True)
Expand All @@ -288,9 +288,9 @@ def draw_more_options_cycles(box, scene, light, material, node_strength, is_port
else: # MESH light
row.prop(material.cycles, "sample_as_light", text="MIS", toggle=True)
row.separator()
row.prop(light.cycles_visibility, "camera", text="Cam", toggle=True)
row.prop(light.cycles_visibility, "diffuse", text="Diff", toggle=True)
row.prop(light.cycles_visibility, "glossy", text="Spec", toggle=True)
row.prop(light, "visible_camera", text="Cam", toggle=True)
row.prop(light, "visible_diffuse", text="Diff", toggle=True)
row.prop(light, "visible_glossy", text="Spec", toggle=True)

if hasattr(light, "GafferFalloff") and scene.render.engine == "CYCLES":
drawfalloff = True
Expand Down

0 comments on commit d0b8a49

Please sign in to comment.