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:
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
|
@ -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++;
|
||||
|
|
Loading…
Reference in New Issue