diff options
author | Campbell Barton <campbellbarton> | 2022-03-31 13:57:02 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2022-03-31 13:57:02 +0300 |
commit | b20b672e76b882887d49d573a780b2f5e3858156 (patch) | |
tree | 7cf411fec96618bf9c4595cc2d46873f5672205e | |
parent | b486421284a9e99a82c190c1ed1f348326aac641 (diff) |
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
-rw-r--r-- | source/blender/editors/transform/transform_gizmo_3d.c | 6 |
1 files 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 */ |