[Bf-blender-cvs] [ac5889a9ee5] blender2.8: Correct editbone root-select check

Campbell Barton noreply at git.blender.org
Wed Nov 21 02:58:23 CET 2018


Commit: ac5889a9ee54a95d36b55894c0e9017251d3b804
Author: Campbell Barton
Date:   Wed Nov 21 12:57:08 2018 +1100
Branches: blender2.8
https://developer.blender.org/rBac5889a9ee54a95d36b55894c0e9017251d3b804

Correct editbone root-select check

Mistake in recent commit.

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

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

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

diff --git a/source/blender/editors/transform/transform_orientations.c b/source/blender/editors/transform/transform_orientations.c
index b8b3929f9b0..b220652395d 100644
--- a/source/blender/editors/transform/transform_orientations.c
+++ b/source/blender/editors/transform/transform_orientations.c
@@ -992,7 +992,11 @@ int getTransformOrientation_ex(const bContext *C, float normal[3], float plane[3
 							add_v3_v3(plane, tmat[1]);
 							ok = true;
 						}
-						else if ((ok == false) && (ebone->flag & (BONE_ROOTSEL | BONE_TIPSEL))) {
+						else if ((ok == false) &&
+						         ((ebone->flag & BONE_TIPSEL) ||
+						          ((ebone->flag & BONE_ROOTSEL) &&
+						           (ebone->parent && ebone->flag & BONE_CONNECTED) == false)))
+						{
 							ED_armature_ebone_to_mat3(ebone, tmat);
 							add_v3_v3(fallback_normal, tmat[2]);
 							add_v3_v3(fallback_plane, tmat[1]);



More information about the Bf-blender-cvs mailing list