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:
authorCampbell Barton <ideasman42@gmail.com>2021-11-11 13:14:10 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-11-11 13:33:09 +0300
commitb7e2408ea4d9cf4559a63d2933478f5a7fd7450c (patch)
tree5f5e089237ee0afcccf9d15b8cd598edd950d553 /source/blender/editors/transform/transform_gizmo_3d.c
parentbb64155c6372577342f80234fece2615c36d347f (diff)
Fix T92867: Gimbal rotation broken when used for multiple objects
Support gimbal orientation for objects & bones.
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 b40412a0845..c96852cd094 100644
--- a/source/blender/editors/transform/transform_gizmo_3d.c
+++ b/source/blender/editors/transform/transform_gizmo_3d.c
@@ -515,7 +515,7 @@ static void protectflag_to_drawflags_pchan(RegionView3D *rv3d,
{
/* Protect-flags apply to local space in pose mode, so only let them influence axis
* visibility if we show the global orientation, otherwise it's confusing. */
- if (orientation_index == V3D_ORIENT_LOCAL) {
+ if (ELEM(orientation_index, V3D_ORIENT_LOCAL, V3D_ORIENT_GIMBAL)) {
protectflag_to_drawflags(pchan->protectflag, &rv3d->twdrawflag);
}
}