[Bf-blender-cvs] [52022cba788] blender-v2.92-release: UI: increase the context menu's light power
Campbell Barton
noreply at git.blender.org
Mon Jan 25 10:37:17 CET 2021
Commit: 52022cba788e6f9002428594bcb820d50664e5df
Author: Campbell Barton
Date: Mon Jan 25 20:35:56 2021 +1100
Branches: blender-v2.92-release
https://developer.blender.org/rB52022cba788e6f9002428594bcb820d50664e5df
UI: increase the context menu's light power
This roughly matches the behavior when
editing this value via the buttons.
Part of D10144
===================================================================
M release/scripts/startup/bl_ui/space_view3d.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 55cb110177f..f2fd04499f5 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -2499,6 +2499,7 @@ class VIEW3D_MT_object_context_menu(Menu):
props = layout.operator("wm.context_modal_mouse", text="Power")
props.data_path_iter = "selected_editable_objects"
props.data_path_item = "data.energy"
+ props.input_scale = 1.0
props.header_text = "Light Power: %.3f"
if light.type == 'AREA':
More information about the Bf-blender-cvs
mailing list