UI: Add Placement Settings to the Options popover #107854

Open
Germano Cavalcante wants to merge 9 commits from mano-wii/blender:snap_menu_placement into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
2 changed files with 4 additions and 11 deletions
Showing only changes of commit 9a459d6b82 - Show all commits

View File

@ -509,16 +509,9 @@ class _defs_view3d_add:
def draw_settings_interactive_add(layout, tool_settings, tool, extra):
show_extra = False
if not extra:
row = layout.row()
row.label(text="Depth:")
row = layout.row()
row.prop(tool_settings, "plane_depth", text="")
row = layout.row()
row.label(text="Orientation:")
row = layout.row()
row.prop(tool_settings, "plane_orientation", text="")
row = layout.row()
row.prop(tool_settings, "snap_elements_tool")
layout.row().prop(tool_settings, "plane_depth", text="Depth")
layout.row().prop(tool_settings, "plane_orientation")
layout.row().prop(tool_settings, "snap_elements_tool")
region_is_header = bpy.context.region.type == 'TOOL_HEADER'
if region_is_header:

View File

@ -158,7 +158,7 @@ class VIEW3D_PT_tools_object_options_dragdrop(View3DPanel, Panel):
col.prop(tool_settings, "plane_depth", text="Depth")
col.prop(tool_settings, "plane_orientation")
col.prop(tool_settings, "snap_elements_tool")
sub = col.column(align=True)
sub = col.row(align=True)
sub.active = not tool_settings.plane_axis_auto
sub.prop(tool_settings, "plane_axis")
col.prop(tool_settings, "plane_axis_auto")