diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-02-27 06:28:25 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-02-27 06:28:25 +0400 |
commit | a815e04f723c8d8bcd6d9fa778598a330795f7f2 (patch) | |
tree | 2673c69c65261b8fb1ffa2b2fa3234245507d6e3 /source/blender | |
parent | b5d6f14290c02f17cce38e3f96594af76e0410ae (diff) |
Fix T38834: Knife constraint is offset after moving the view
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/mesh/editmesh_knife.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/mesh/editmesh_knife.c b/source/blender/editors/mesh/editmesh_knife.c index a167870fdf6..12737976436 100644 --- a/source/blender/editors/mesh/editmesh_knife.c +++ b/source/blender/editors/mesh/editmesh_knife.c @@ -1797,6 +1797,10 @@ static int knife_update_active(KnifeTool_OpData *kcd) { knife_pos_data_clear(&kcd->curr); copy_v2_v2(kcd->curr.mval, kcd->mval); + + /* view matrix may have changed, reproject */ + knife_project_v2(kcd, kcd->prev.co, kcd->prev.mval); + if (kcd->angle_snapping != ANGLE_FREE && kcd->mode == MODE_DRAGGING) knife_snap_angle(kcd); |