Correct own error in changes to pose gizmo center

Multi-pose gizmo center calculation from
5d09f5223e now works as expected.
This commit is contained in:
Campbell Barton 2018-12-18 23:01:38 +11:00
parent c92cffb56d
commit eb78579bb6
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}