From 2120c5af032831348412a2a8e6c61f82ba1b921c Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 14 Apr 2019 13:11:17 +0200 Subject: Gizmo: individual toggles for 3D view gizmos The popover for displaying gizmos now has options for empty, light & camera gizmos. Transform toggles are now checkboxes, which has the advantage that it's more obvious they can be mixed however changing from one to another now uses 3x clicks instead of a single click-drag action. We might need a faster way to switch between transform types. --- release/scripts/startup/bl_ui/space_view3d.py | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) (limited to 'release/scripts') diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index a3d5045135b..4413e4f06eb 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -4788,11 +4788,24 @@ class VIEW3D_PT_gizmo_display(Panel): colsub.prop(view, "show_gizmo_tool", text="Active Tools") colsub.prop(view, "show_gizmo_context", text="Active Object") - col.label(text="Transform Gizmos") - rowsub = col.row() - rowsub.active = view.show_gizmo_context - rowsub.prop(view, "show_gizmo_transform") - col.prop(scene.transform_orientation_slots[1], "type", text="") + colsub = col.column() + colsub.active = view.show_gizmo_context + colsub.label(text="Object Gizmos") + colsub.prop(scene.transform_orientation_slots[1], "type", text="") + colsub.prop(view, "show_gizmo_object_translate", text="Move") + colsub.prop(view, "show_gizmo_object_rotate", text="Rotate") + colsub.prop(view, "show_gizmo_object_scale", text="Scale") + + # Match order of object type visibility + colsub.label(text="Empty") + colsub.prop(view, "show_gizmo_empty_image", text="Image") + colsub.prop(view, "show_gizmo_empty_force_field", text="Force Field") + colsub.label(text="Light") + colsub.prop(view, "show_gizmo_light_size", text="Size") + colsub.prop(view, "show_gizmo_light_look_at", text="Look At") + colsub.label(text="Camera") + colsub.prop(view, "show_gizmo_camera_lens", text="Lens") + colsub.prop(view, "show_gizmo_camera_dof_distance", text="Focus Distance") class VIEW3D_PT_overlay(Panel): -- cgit v1.2.3