diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-05-22 10:47:39 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-05-22 10:47:39 +0300 |
commit | e21af38f69577229c93cf46aab655384ee864948 (patch) | |
tree | 7e63f17e1470281b19649b820a9634b2c7cb3772 /source/blender/editors/armature/armature_edit.c | |
parent | 24a3a9e8a3e36d520b05a648070489aa0eebb77f (diff) |
Fix T48476: 'Recalculate Bone to Cursor' fails
Diffstat (limited to 'source/blender/editors/armature/armature_edit.c')
-rw-r--r-- | source/blender/editors/armature/armature_edit.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/armature/armature_edit.c b/source/blender/editors/armature/armature_edit.c index b1c23fb4cac..354b748e129 100644 --- a/source/blender/editors/armature/armature_edit.c +++ b/source/blender/editors/armature/armature_edit.c @@ -317,9 +317,10 @@ static int armature_calc_roll_exec(bContext *C, wmOperator *op) float cursor_local[3]; const float *cursor = ED_view3d_cursor3d_get(scene, v3d); - + invert_m4_m4(ob->imat, ob->obmat); copy_v3_v3(cursor_local, cursor); - mul_m3_v3(imat, cursor_local); + mul_m4_v3(ob->imat, cursor_local); + /* cursor */ for (ebone = arm->edbo->first; ebone; ebone = ebone->next) { |