[Bf-blender-cvs] [0a97e63] blender-v2.78-release: Fix T49375: align rotation with snap target isn't toggleable in edit mode.
Bastien Montagne
noreply at git.blender.org
Thu Sep 22 11:15:27 CEST 2016
Commit: 0a97e632462c8d81e7cba3bc588f6ec029fa515c
Author: Bastien Montagne
Date: Mon Sep 19 15:49:43 2016 +0200
Branches: blender-v2.78-release
https://developer.blender.org/rB0a97e632462c8d81e7cba3bc588f6ec029fa515c
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.
===================================================================
M release/scripts/startup/bl_ui/space_view3d.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index b9cb7f2..6e535ce 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="")
More information about the Bf-blender-cvs
mailing list