forked from bartvdbraak/blender
UI: minor layout tweaks to 3D viewport gizmo menu
This commit is contained in:
parent
a277804c25
commit
98e2713e94
@ -409,7 +409,6 @@ class _draw_tool_settings_context_mode:
|
||||
else:
|
||||
txt_ma = ""
|
||||
|
||||
row.label(text="Material:")
|
||||
sub = row.row()
|
||||
sub.ui_units_x = 8
|
||||
sub.popover(
|
||||
@ -5129,24 +5128,29 @@ class VIEW3D_PT_gizmo_display(Panel):
|
||||
colsub.prop(view, "show_gizmo_tool", text="Active Tools")
|
||||
colsub.prop(view, "show_gizmo_context", text="Active Object")
|
||||
|
||||
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")
|
||||
layout.separator()
|
||||
|
||||
col = layout.column()
|
||||
col.active = view.show_gizmo_context
|
||||
col.label(text="Object Gizmos")
|
||||
col.prop(scene.transform_orientation_slots[1], "type", text="")
|
||||
col.prop(view, "show_gizmo_object_translate", text="Move")
|
||||
col.prop(view, "show_gizmo_object_rotate", text="Rotate")
|
||||
col.prop(view, "show_gizmo_object_scale", text="Scale")
|
||||
|
||||
layout.separator()
|
||||
|
||||
# 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")
|
||||
col = layout.column()
|
||||
col.label(text="Empty")
|
||||
col.prop(view, "show_gizmo_empty_image", text="Image")
|
||||
col.prop(view, "show_gizmo_empty_force_field", text="Force Field")
|
||||
col.label(text="Light")
|
||||
col.prop(view, "show_gizmo_light_size", text="Size")
|
||||
col.prop(view, "show_gizmo_light_look_at", text="Look At")
|
||||
col.label(text="Camera")
|
||||
col.prop(view, "show_gizmo_camera_lens", text="Lens")
|
||||
col.prop(view, "show_gizmo_camera_dof_distance", text="Focus Distance")
|
||||
|
||||
|
||||
class VIEW3D_PT_overlay(Panel):
|
||||
|
Loading…
Reference in New Issue
Block a user