Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <eiseljulian@gmail.com>2019-10-10 16:06:11 +0300
committerJulian Eisel <eiseljulian@gmail.com>2019-10-10 16:06:11 +0300
commit7c88d845157ee290b1802a071a5d1aad5be63b17 (patch)
tree28311d1dc40384bf992f30bd98c28e1e13d6b2b0 /source/blender/editors/transform/transform_gizmo_3d.c
parente15ab630c66c07772b2337e4cd5f334aa013ceaf (diff)
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.
Diffstat (limited to 'source/blender/editors/transform/transform_gizmo_3d.c')
-rw-r--r--source/blender/editors/transform/transform_gizmo_3d.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}