[Bf-blender-cvs] [7c88d845157] master: Fix: Manipulator visible if root or tip of locked bone is selected

Julian Eisel noreply at git.blender.org
Thu Oct 10 15:17:22 CEST 2019


Commit: 7c88d845157ee290b1802a071a5d1aad5be63b17
Author: Julian Eisel
Date:   Thu Oct 10 15:06:11 2019 +0200
Branches: master
https://developer.blender.org/rB7c88d845157ee290b1802a071a5d1aad5be63b17

Fix: Manipulator visible if root or tip of locked bone is selected

When an edit-bone was locked, we hid the transform manipulator for it.
But only if the bone itself was selected, not when the root or tip were
selected, even though they are locked then too. So this makes sure the
manipulator is shown in neither case.

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

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

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

diff --git a/source/blender/editors/transform/transform_gizmo_3d.c b/source/blender/editors/transform/transform_gizmo_3d.c
index 65fd9c6f5e9..e4fca2bb6be 100644
--- a/source/blender/editors/transform/transform_gizmo_3d.c
+++ b/source/blender/editors/transform/transform_gizmo_3d.c
@@ -888,7 +888,7 @@ int ED_transform_calc_gizmo_stats(const bContext *C,
               calc_tw_center_with_matrix(tbounds, ebo->head, use_mat_local, mat_local);
               totsel++;
             }
-            if (ebo->flag & BONE_SELECTED) {
+            if (ebo->flag & (BONE_SELECTED | BONE_ROOTSEL | BONE_TIPSEL)) {
               protectflag_to_drawflags_ebone(rv3d, ebo);
             }
           }



More information about the Bf-blender-cvs mailing list