diff options
author | Jeroen Bakker <j.bakker@atmind.nl> | 2018-05-16 17:42:30 +0300 |
---|---|---|
committer | Jeroen Bakker <j.bakker@atmind.nl> | 2018-05-16 17:43:10 +0300 |
commit | e862bcd6c8cb218c2213ac4a05a11dd13dbdecbf (patch) | |
tree | 317f98432815c99e5cffd52947b567fdc4a3c400 /release/scripts | |
parent | def1c3eb4b5c2926431a1c975839e7719f06b38e (diff) |
Workbench: World based studio lighting
Disabled shadows for now as the calculation of the light direction is
still to bogus.
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index f053a326ef1..53dea7ad2e8 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -3510,14 +3510,17 @@ class VIEW3D_PT_shading(Panel): col.row().prop(shading, "light", expand=True) if shading.light == 'STUDIO': col.row().template_icon_view(shading, "studio_light") + if shading.studio_light_orientation == 'WORLD': + col.row().prop(shading, "studiolight_rot_z") col.separator() - row = col.row() - row.prop(shading, "show_shadows") - sub = row.row() - sub.active = shading.show_shadows - sub.prop(shading, "shadow_intensity", text="") + if not(shading.light == 'STUDIO' and shading.studio_light_orientation == 'WORLD'): + row = col.row() + row.prop(shading, "show_shadows") + sub = row.row() + sub.active = shading.show_shadows + sub.prop(shading, "shadow_intensity", text="") col.prop(shading, "show_object_outline") |