[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [43653] branches/bmesh/blender/source/ blender/bmesh/operators/mesh_conv.c: comment unused code.

Campbell Barton ideasman42 at gmail.com
Tue Jan 24 00:39:51 CET 2012


Revision: 43653
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43653
Author:   campbellbarton
Date:     2012-01-23 23:39:51 +0000 (Mon, 23 Jan 2012)
Log Message:
-----------
comment unused code.

Modified Paths:
--------------
    branches/bmesh/blender/source/blender/bmesh/operators/mesh_conv.c

Modified: branches/bmesh/blender/source/blender/bmesh/operators/mesh_conv.c
===================================================================
--- branches/bmesh/blender/source/blender/bmesh/operators/mesh_conv.c	2012-01-23 23:32:09 UTC (rev 43652)
+++ branches/bmesh/blender/source/blender/bmesh/operators/mesh_conv.c	2012-01-23 23:39:51 UTC (rev 43653)
@@ -199,7 +199,6 @@
 
 	mpoly = me->mpoly;
 	for (i=0; i<me->totpoly; i++, mpoly++) {
-		BMVert *v1 /* , *v2 */ /* UNUSED */;
 		BMIter iter;
 
 		BLI_array_empty(fedges);
@@ -217,17 +216,24 @@
 			verts[j] = v;
 		}
 		
-		v1 = vt[me->mloop[mpoly->loopstart].v];
-		/* v2 = vt[me->mloop[mpoly->loopstart+1].v]; */ /* UNUSED */ /* code below always overwrites */
+		/* not sure what this block is supposed to do,
+		 * but its unused. so commenting - campbell */
+#if 0
+		{
+			BMVert *v1, *v2;
+			v1 = vt[me->mloop[mpoly->loopstart].v];
+			v2 = vt[me->mloop[mpoly->loopstart+1].v];
 
-		if (v1 == fedges[0]->v1) {
-			/* v2 = fedges[0]->v2; */ /* UNUSED */
+			if (v1 == fedges[0]->v1) {
+				v2 = fedges[0]->v2;
+			}
+			else {
+				v1 = fedges[0]->v2;
+				v2 = fedges[0]->v1;
+			}
 		}
-		else {
-			v1 = fedges[0]->v2;
-			/* v2 = fedges[0]->v1; */ /* UNUSED */
-		}
-	
+#endif
+
 		f = BM_Make_Face(bm, verts, fedges, mpoly->totloop, 0);
 
 		if (!f) {
@@ -291,17 +297,20 @@
 		                                "Selection Conversion Face Pointer Array");
 
 		for(i = 0, vertex = BMIter_New(&iter, bm, BM_VERTS_OF_MESH, NULL);
-		    vertex; i++, vertex = BMIter_Step(&iter)) {
+		    vertex; i++, vertex = BMIter_Step(&iter))
+		{
 			vertex_array[i] = vertex;
 		}
 
 		for(i = 0, edge = BMIter_New(&iter, bm, BM_EDGES_OF_MESH, NULL);
-		    edge; i++, edge = BMIter_Step(&iter)) {
+		    edge; i++, edge = BMIter_Step(&iter))
+		{
 			edge_array[i] = edge;
 		}
 
 		for(i = 0, face = BMIter_New(&iter, bm, BM_FACES_OF_MESH, NULL);
-		    face; i++, face = BMIter_Step(&iter)) {
+		    face; i++, face = BMIter_Step(&iter))
+		{
 			face_array[i] = face;
 		}
 



More information about the Bf-blender-cvs mailing list