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.
This commit is contained in:
Bastien Montagne 2016-09-19 15:49:43 +02:00 committed by Sergey Sharybin
parent 0247547b6b
commit 0a97e63246
1 changed files with 3 additions and 3 deletions

View File

@ -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="")