[Bf-blender-cvs] [1030b22] master: Fix T46325: Armature: No more possible to rotate a bone with only its tip selected, in EditMode.

Bastien Montagne noreply at git.blender.org
Wed Sep 30 10:51:43 CEST 2015


Commit: 1030b22b0ae67aa648da5a77c38a361bb2d8cd6f
Author: Bastien Montagne
Date:   Wed Sep 30 10:48:22 2015 +0200
Branches: master
https://developer.blender.org/rB1030b22b0ae67aa648da5a77c38a361bb2d8cd6f

Fix T46325: Armature: No more possible to rotate a bone with only its tip selected, in EditMode.

Regression from rB312cb0a957b81233ea, now we make an exception for TFM_ROTATION mode...

===================================================================

M	source/blender/editors/transform/transform_conversions.c

===================================================================

diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c
index c12418f..1e642d3 100644
--- a/source/blender/editors/transform/transform_conversions.c
+++ b/source/blender/editors/transform/transform_conversions.c
@@ -1253,11 +1253,16 @@ static void createTransArmatureVerts(TransInfo *t)
 				if (ebo->flag & BONE_TIPSEL) {
 					copy_v3_v3(td->iloc, ebo->tail);
 
-					/* don't allow single selected tips to have a modified center,
-					 * causes problem with snapping T45974 */
-					copy_v3_v3(td->center,
-					           ((t->around == V3D_LOCAL) &&
-					            (ebo->flag & BONE_ROOTSEL)) ? ebo->head : td->iloc);
+					/* Don't allow single selected tips to have a modified center,
+					 * causes problem with snapping (see T45974).
+					 * However, in rotation mode, we want to keep that 'rotate bone around root with
+					 * only its tip selected' behavior (see T46325). */
+					if ((t->around == V3D_LOCAL) && ((t->mode == TFM_ROTATION) || (ebo->flag & BONE_ROOTSEL))) {
+						copy_v3_v3(td->center, ebo->head);
+					}
+					else {
+						copy_v3_v3(td->center, td->iloc);
+					}
 
 					td->loc = ebo->tail;
 					td->flag = TD_SELECTED;




More information about the Bf-blender-cvs mailing list