Fix T55440: Pose Mode Crash
authorDalai Felinto <dfelinto@gmail.com>
Mon, 11 Jun 2018 13:29:13 +0000 (15:29 +0200)
committerDalai Felinto <dfelinto@gmail.com>
Mon, 11 Jun 2018 13:29:13 +0000 (15:29 +0200)
source/blender/editors/transform/transform_generics.c

index d3fcd5e..8bef63d 100644 (file)
@@ -1956,7 +1956,7 @@ bool calculateCenterActive(TransInfo *t, bool select_only, float r_center[3])
                        bPoseChannel *pchan = BKE_pose_channel_active(ob);
                        if (pchan && (!select_only || (pchan->bone->flag & BONE_SELECTED))) {
                                copy_v3_v3(r_center, pchan->pose_head);
-                               mul_m4_v3(tc->obedit->obmat, r_center);
+                               mul_m4_v3(ob->obmat, r_center);
                                ok = true;
                        }
                }