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 <ideasman42@gmail.com>2018-12-18 15:01:38 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-12-18 15:03:29 +0300
commiteb78579bb65820b7eab2049d614a9ad70d1c8d07 (patch)
tree6c289ef8c8c1900de5cf7e3a1a43174c6ab27bfd /source/blender
parentc92cffb56d55f5f8f3d42b9da9ca6885f374c0b0 (diff)
Correct own error in changes to pose gizmo center
Multi-pose gizmo center calculation from 5d09f5223e63 now works as expected.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/transform/transform_gizmo_3d.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/editors/transform/transform_gizmo_3d.c b/source/blender/editors/transform/transform_gizmo_3d.c
index 3c0ba964974..84d9930871a 100644
--- a/source/blender/editors/transform/transform_gizmo_3d.c
+++ b/source/blender/editors/transform/transform_gizmo_3d.c
@@ -1024,14 +1024,13 @@ int ED_transform_calc_gizmo_stats(
if (totsel_iter) {
float mat_local[4][4];
if (use_mat_local) {
- mul_m4_m4m4(mat_local, ob_iter->imat, ob_iter->obmat);
+ mul_m4_m4m4(mat_local, ob->imat, ob_iter->obmat);
}
/* use channels to get stats */
for (pchan = ob_iter->pose->chanbase.first; pchan; pchan = pchan->next) {
Bone *bone = pchan->bone;
if (bone && (bone->flag & BONE_TRANSFORM)) {
- calc_tw_center(tbounds, pchan->pose_head);
calc_tw_center_with_matrix(tbounds, pchan->pose_head, use_mat_local, mat_local);
protectflag_to_drawflags_pchan(rv3d, pchan);
}