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 <campbell@blender.org>2022-03-29 04:49:04 +0300
committerCampbell Barton <campbell@blender.org>2022-03-29 04:57:33 +0300
commitf99beb730aa822d8b0b77bf85dbe0db5c7b757a3 (patch)
tree7181f2d7cb1302147d06f44817d3369a4d9bf213 /source/blender
parent87d9d33c0066bdd6eaf3fd38689f99db8e79dd03 (diff)
Fix T96347: Pose gizmo shown at wrong location with multiple objects
Regression in [0] error iterating over pose bones which only used the active-object, also follow the same logic as edit-mode for using the local-matrix. [0]: d052169e7e4b84b5d621fcbf15b187a4951f1f70
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/transform/transform_gizmo_3d.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/transform/transform_gizmo_3d.c b/source/blender/editors/transform/transform_gizmo_3d.c
index 955916ff437..aa8dad2b95f 100644
--- a/source/blender/editors/transform/transform_gizmo_3d.c
+++ b/source/blender/editors/transform/transform_gizmo_3d.c
@@ -939,7 +939,7 @@ int ED_transform_calc_gizmo_stats(const bContext *C,
for (uint ob_index = 0; ob_index < objects_len; ob_index++) {
Object *ob_iter = objects[ob_index];
- const bool use_mat_local = params->use_local_axis && (ob_iter != ob);
+ const bool use_mat_local = (ob_iter != ob);
/* mislead counting bones... bah. We don't know the gizmo mode, could be mixed */
const int mode = TFM_ROTATION;
@@ -951,7 +951,7 @@ int ED_transform_calc_gizmo_stats(const bContext *C,
}
/* Use channels to get stats. */
- LISTBASE_FOREACH (bPoseChannel *, pchan, &ob->pose->chanbase) {
+ LISTBASE_FOREACH (bPoseChannel *, pchan, &ob_iter->pose->chanbase) {
if (!(pchan->bone->flag & BONE_TRANSFORM)) {
continue;
}