diff options
author | Martin Poirier <theeth@yahoo.com> | 2012-03-11 01:40:35 +0400 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2012-03-11 01:40:35 +0400 |
commit | 67f1e83508ac1312b6b41093cb1946363ce3d0fd (patch) | |
tree | 7b412752e0cea4d243b1dd4868b066d34f952eb2 /release | |
parent | e09ab8883ce0e41add94058ecd4045ac5efa74c6 (diff) |
[#30373] Which part to snap in volume snapping is removed
By Bug reported by Pep Ribal
Also fixed an object mode bug with volume snapping and made it compatible with the edit mode "Snap on self" option
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index e639300998a..f18394edd91 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -88,10 +88,10 @@ class VIEW3D_HT_header(Header): row = layout.row(align=True) row.prop(toolsettings, "use_snap", text="") row.prop(toolsettings, "snap_element", text="", icon_only=True) - if snap_element not in {'INCREMENT', 'VOLUME'}: + if snap_element != 'INCREMENT': row.prop(toolsettings, "snap_target", text="") if obj: - if obj.mode == 'OBJECT': + if obj.mode == 'OBJECT' and snap_element != 'VOLUME': row.prop(toolsettings, "use_snap_align_rotation", text="") elif obj.mode == 'EDIT': row.prop(toolsettings, "use_snap_self", text="") |