Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'release/scripts/startup/bl_ui/space_view3d.py')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 1b833d0a8c3..35b37475f17 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -2312,12 +2312,19 @@ class VIEW3D_MT_object_context_menu(Menu):
props.data_path_item = "data.size_y"
props.header_text = "Light Size Y: %.3f"
- elif light.type in {'SPOT', 'POINT', 'SUN'}:
+ elif light.type in {'SPOT', 'POINT'}:
props = layout.operator("wm.context_modal_mouse", text="Radius")
props.data_path_iter = "selected_editable_objects"
props.data_path_item = "data.shadow_soft_size"
props.header_text = "Light Radius: %.3f"
+ elif light.type == 'SUN':
+ props = layout.operator("wm.context_modal_mouse", text="Angle")
+ props.data_path_iter = "selected_editable_objects"
+ props.data_path_item = "data.angle"
+ props.header_text = "Light Angle: %.3f"
+
+
if light.type == 'SPOT':
layout.separator()