From a815e04f723c8d8bcd6d9fa778598a330795f7f2 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 27 Feb 2014 13:28:25 +1100 Subject: Fix T38834: Knife constraint is offset after moving the view --- source/blender/editors/mesh/editmesh_knife.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source') 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); -- cgit v1.2.3