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-12 16:11:15 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-11-12 16:19:36 +0300
commit0ea60cf6b813f8b792a253e10a6c2edaf7fb689f (patch)
treee2913c1d7b4dd834826ce7e9c62fd1a00da696ed /source/blender/editors
parentde8a46c6ad9c587e69afd7a7c1eb58faec0501c3 (diff)
Fix gizmo protection flag use in object mode
Channel protection flags were only used in global mode, this doesn't make any sense, especially for rotation and scale. Follow pose-bones, only using protection flags for local & gimbal orientation.
Diffstat (limited to 'source/blender/editors')
-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 c96852cd094..d3aaae7253e 100644
--- a/source/blender/editors/transform/transform_gizmo_3d.c
+++ b/source/blender/editors/transform/transform_gizmo_3d.c
@@ -1064,7 +1064,7 @@ int ED_transform_calc_gizmo_stats(const bContext *C,
/* Protect-flags apply to world space in object mode, so only let them influence axis
* visibility if we show the global orientation, otherwise it's confusing. */
- if (orient_index == V3D_ORIENT_GLOBAL) {
+ if (ELEM(orient_index, V3D_ORIENT_LOCAL, V3D_ORIENT_GIMBAL)) {
protectflag_to_drawflags(base->object->protectflag, &rv3d->twdrawflag);
}
totsel++;