diff options
author | Tim Stullich <tstullich> | 2019-05-15 15:45:33 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-05-15 17:07:50 +0300 |
commit | 5ba1a6bee0426e77a01cec8c89999ee4d15ced63 (patch) | |
tree | 3f6fa2deef19c31f93c9d68d54814fa85bf5d52a /intern/cycles/blender/addon | |
parent | 2497ee31ec89560a9b72a070a70735caa6655b9e (diff) |
Lights: change sun light size to be specified as angle
This is the angular diameter as seen from earth, which is between 0.526° and
0.545° in reality. Sharing the size with other light types did not make much
sense and meant the unit was unclear.
Differential Revision: https://developer.blender.org/D4819
Diffstat (limited to 'intern/cycles/blender/addon')
-rw-r--r-- | intern/cycles/blender/addon/properties.py | 2 | ||||
-rw-r--r-- | intern/cycles/blender/addon/ui.py | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/intern/cycles/blender/addon/properties.py b/intern/cycles/blender/addon/properties.py index 6da88a769f5..f376eb8ec67 100644 --- a/intern/cycles/blender/addon/properties.py +++ b/intern/cycles/blender/addon/properties.py @@ -1490,7 +1490,7 @@ class CyclesPreferences(bpy.types.AddonPreferences): break if not found_device: - col = box.column(align=True); + col = box.column(align=True) col.label(text="No compatible GPUs found for path tracing", icon='INFO') col.label(text="Cycles will render on the CPU", icon='BLANK1') return diff --git a/intern/cycles/blender/addon/ui.py b/intern/cycles/blender/addon/ui.py index 9714067b08e..5ff88367f22 100644 --- a/intern/cycles/blender/addon/ui.py +++ b/intern/cycles/blender/addon/ui.py @@ -1345,8 +1345,10 @@ class CYCLES_LIGHT_PT_light(CyclesButtonsPanel, Panel): col.prop(light, "energy") col.separator() - if light.type in {'POINT', 'SUN', 'SPOT'}: + if light.type in {'POINT', 'SPOT'}: col.prop(light, "shadow_soft_size", text="Size") + elif light.type == 'SUN': + col.prop(light, "angle") elif light.type == 'AREA': col.prop(light, "shape", text="Shape") sub = col.column(align=True) |