[Bf-blender-cvs] [e2c24a1] master: Knife: fix glitch dragging mouse outside the face
Campbell Barton
noreply at git.blender.org
Mon Mar 2 23:31:41 CET 2015
Commit: e2c24a18e359517c7e5ae83a6540d3d08bbef8d3
Author: Campbell Barton
Date: Tue Mar 3 09:27:38 2015 +1100
Branches: master
https://developer.blender.org/rBe2c24a18e359517c7e5ae83a6540d3d08bbef8d3
Knife: fix glitch dragging mouse outside the face
Had a small gap between the last-vertex & new-cut
===================================================================
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 5b2dd56..f3745ed 100644
--- a/source/blender/editors/mesh/editmesh_knife.c
+++ b/source/blender/editors/mesh/editmesh_knife.c
@@ -884,16 +884,15 @@ static void knife_add_cut(KnifeTool_OpData *kcd)
KnifeLineHit *lh;
/* was "in face" but now we have a KnifeVert it is snapped to */
lh = &kcd->linehits[kcd->totlinehit - 1];
-
- if (kcd->is_drag_hold) {
- linehit_to_knifepos(&kcd->prev, lh);
- }
- else {
- kcd->prev.vert = lh->v;
- }
+ kcd->prev.vert = lh->v;
kcd->prev.bmface = NULL;
}
+ if (kcd->is_drag_hold) {
+ lh = &kcd->linehits[kcd->totlinehit - 1];
+ linehit_to_knifepos(&kcd->prev, lh);
+ }
+
BLI_ghash_free(facehits, NULL, NULL);
MEM_freeN(kcd->linehits);
kcd->linehits = NULL;
More information about the Bf-blender-cvs
mailing list