From b20b672e76b882887d49d573a780b2f5e3858156 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 31 Mar 2022 12:57:02 +0200 Subject: Fix T96347: Pose gizmo shown at wrong location with multiple objects Regression in [0] follow the same logic as edit-mode for using the local-matrix. [0]: d052169e7e4b84b5d621fcbf15b187a4951f1f70 --- source/blender/editors/transform/transform_gizmo_3d.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/blender/editors/transform/transform_gizmo_3d.c b/source/blender/editors/transform/transform_gizmo_3d.c index 9bd55d78039..38b4a0d00ae 100644 --- a/source/blender/editors/transform/transform_gizmo_3d.c +++ b/source/blender/editors/transform/transform_gizmo_3d.c @@ -964,10 +964,8 @@ int ED_transform_calc_gizmo_stats(const bContext *C, if (totsel_iter) { float mat_local[4][4]; - if (params->use_local_axis) { - if (use_mat_local) { - mul_m4_m4m4(mat_local, ob->imat, ob_iter->obmat); - } + if (use_mat_local) { + mul_m4_m4m4(mat_local, ob->imat, ob_iter->obmat); } /* use channels to get stats */ -- cgit v1.2.3