Transform: absolute grid snapping

D910 by @donfabio with edits

New icon for menu is still TODO
This commit is contained in:
2015-06-27 15:30:17 +10:00
parent e2d3e36ca7
commit 48ef0501b7
4 changed files with 24 additions and 8 deletions

View File

@@ -86,7 +86,7 @@ class VIEW3D_HT_header(Header):
row = layout.row(align=True)
row.prop(toolsettings, "use_snap", text="")
row.prop(toolsettings, "snap_element", icon_only=True)
if snap_element != 'INCREMENT':
if snap_element not in {'INCREMENT', 'GRID'}:
row.prop(toolsettings, "snap_target", text="")
if obj:
if mode in {'OBJECT', 'POSE'} and snap_element != 'VOLUME':