diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2016-09-19 16:49:43 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-09-22 12:07:36 +0300 |
commit | 0a97e632462c8d81e7cba3bc588f6ec029fa515c (patch) | |
tree | 796731dcc6d6df3f52eed0f74bb4484697a8a0e6 | |
parent | 0247547b6b535a4db8b155658ebfee3971b3fdc9 (diff) |
Fix T49375: align rotation with snap target isn't toggleable in edit mode.
Based on D2237, but fixed patch always hiding 'snap on self' button...
Should be safe for 2.78.
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index b9cb7f24ebd..6e535ce6632 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -106,10 +106,10 @@ class VIEW3D_HT_header(Header): else: row.prop(toolsettings, "snap_target", text="") if obj: - if mode in {'OBJECT', 'POSE'} and snap_element != 'VOLUME': - row.prop(toolsettings, "use_snap_align_rotation", text="") - elif mode == 'EDIT': + if mode == 'EDIT': row.prop(toolsettings, "use_snap_self", text="") + if mode in {'OBJECT', 'POSE', 'EDIT'} and snap_element != 'VOLUME': + row.prop(toolsettings, "use_snap_align_rotation", text="") if snap_element == 'VOLUME': row.prop(toolsettings, "use_snap_peel_object", text="") |