[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [45751] trunk/blender/source/blender/ editors/mesh/editmesh_knife.c: correct ifdef'd scanfill code, incase someone wants to test.

Campbell Barton ideasman42 at gmail.com
Wed Apr 18 17:09:13 CEST 2012


Revision: 45751
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=45751
Author:   campbellbarton
Date:     2012-04-18 15:09:13 +0000 (Wed, 18 Apr 2012)
Log Message:
-----------
correct ifdef'd scanfill code, incase someone wants to test.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/mesh/editmesh_knife.c

Modified: trunk/blender/source/blender/editors/mesh/editmesh_knife.c
===================================================================
--- trunk/blender/source/blender/editors/mesh/editmesh_knife.c	2012-04-18 14:36:56 UTC (rev 45750)
+++ trunk/blender/source/blender/editors/mesh/editmesh_knife.c	2012-04-18 15:09:13 UTC (rev 45751)
@@ -1680,7 +1680,7 @@
 		if (BLI_array_count(faces) > 0) {
 			idx = BM_elem_index_get(faces[0]);
 
-			f2 = BM_faces_join(bm, faces, BLI_array_count(faces));
+			f2 = BM_faces_join(bm, faces, BLI_array_count(faces), TRUE);
 			if (f2) {
 				BMO_elem_flag_enable(bm, f2, FACE_NEW);
 				BM_elem_index_set(f2, idx); /* set_dirty! *//* BMESH_TODO, check if this is valid or not */
@@ -1700,6 +1700,7 @@
 /* use edgenet to fill faces.  this is a bit annoying and convoluted.*/
 static void knifenet_fill_faces(knifetool_opdata *kcd)
 {
+	ScanFillContext sf_ctx;
 	BMesh *bm = kcd->em->bm;
 	BMIter bmiter;
 	BLI_mempool_iter iter;
@@ -1869,15 +1870,15 @@
 			}
 			else {
 				if (lasteve->poly_nr < 2)
-					BLI_remlink(&fillvertbase, lasteve);
+					BLI_remlink(&sf_ctx.fillvertbase, lasteve);
 				if (eve->poly_nr < 2)
-					BLI_remlink(&fillvertbase, eve);
+					BLI_remlink(&sf_ctx.fillvertbase, eve);
 			}
 		}
 
 		BLI_edgefill(&sf_ctx, FALSE);
 
-		for (efa = fillfacebase.first; efa; efa = efa->next) {
+		for (efa = sf_ctx.fillfacebase.first; efa; efa = efa->next) {
 			BMVert *v1 = efa->v3->tmp.p, *v2 = efa->v2->tmp.p, *v3 = efa->v1->tmp.p;
 			BMFace *f2;
 			BMLoop *l_iter;
@@ -1908,7 +1909,7 @@
 			}
 		}
 
-		BLI_end_edgefill();
+		BLI_end_edgefill(&sf_ctx);
 		BLI_smallhash_release(hash);
 	}
 	bm->elem_index_dirty |= BM_FACE;




More information about the Bf-blender-cvs mailing list