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.
This commit is contained in:
Campbell Barton 2021-11-13 00:11:15 +11:00
parent de8a46c6ad
commit 0ea60cf6b8
Notes: blender-bot 2023-02-14 02:41:05 +01:00
Referenced by commit 5f7d5c0809, Gizmo: adjust when gizmo protection flags are displayed
1 changed files with 1 additions and 1 deletions

View File

@ -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++;