Add Object Tool: support incremental snapping

This adds a "Snap to" option that allows using all the scenes snap
settings which includes incremental & absolute grid snapping options.

This is optional because always following scene snapping would not
snap to geometry by default (which seems to be the most useful default).
This commit is contained in:
Campbell Barton
2021-01-16 11:29:57 +11:00
parent c4bbe44e47
commit cdfa3feb91
4 changed files with 117 additions and 8 deletions

View File

@@ -462,6 +462,8 @@ class _defs_view3d_add:
row = layout.row()
row.scale_x = 0.7
row.prop(props, "plane_origin")
row.scale_x = 0.8
row.prop(props, "snap_target")
@ToolDef.from_fn
def cube_add():