[Bf-blender-cvs] [a815e04] master: Fix T38834: Knife constraint is offset after moving the view

Campbell Barton noreply at git.blender.org
Thu Feb 27 03:30:23 CET 2014


Commit: a815e04f723c8d8bcd6d9fa778598a330795f7f2
Author: Campbell Barton
Date:   Thu Feb 27 13:28:25 2014 +1100
https://developer.blender.org/rBa815e04f723c8d8bcd6d9fa778598a330795f7f2

Fix T38834: Knife constraint is offset after moving the view

===================================================================

M	source/blender/editors/mesh/editmesh_knife.c

===================================================================

diff --git a/source/blender/editors/mesh/editmesh_knife.c b/source/blender/editors/mesh/editmesh_knife.c
index a167870..1273797 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);




More information about the Bf-blender-cvs mailing list