[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [12895] trunk/blender/source/blender/ python/api2_2x/Mesh.c: last commit overwrote joeedh's, added the change back

Campbell Barton ideasman42 at gmail.com
Sat Dec 15 21:08:41 CET 2007


Revision: 12895
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=12895
Author:   campbellbarton
Date:     2007-12-15 21:08:41 +0100 (Sat, 15 Dec 2007)

Log Message:
-----------
last commit overwrote joeedh's, added the change back

Modified Paths:
--------------
    trunk/blender/source/blender/python/api2_2x/Mesh.c

Modified: trunk/blender/source/blender/python/api2_2x/Mesh.c
===================================================================
--- trunk/blender/source/blender/python/api2_2x/Mesh.c	2007-12-15 19:23:55 UTC (rev 12894)
+++ trunk/blender/source/blender/python/api2_2x/Mesh.c	2007-12-15 20:08:41 UTC (rev 12895)
@@ -5393,7 +5393,7 @@
 		return V24_EXPP_ReturnPyObjError( PyExc_TypeError,
 				"sequence must contain at least one int or MFace" );
 
-	face_table = (unsigned int *)MEM_callocN( len*sizeof( unsigned int ),
+	face_table = MEM_callocN( len*sizeof( unsigned int ),
 			"face_table" );
 
 	/* get the indices of faces to be removed */
@@ -5517,14 +5517,11 @@
 			}
 		}
 
-		/* for each face, deselect each edge */
+		/* for each remaining face, select all edges */
 		tmpface = mesh->mface;
 		fface = (struct fourEdges *)face_edges;
 		for( i = mesh->totface; i--; ++tmpface, ++fface ) {
 			if( tmpface->v1 != UINT_MAX ) {
-				V24_FaceEdges (*face)[4];
-				face = (void *)face_edges;
-				face += face_table[i];
 				fface->v[0]->sel = 1;
 				fface->v[1]->sel = 1;
 				fface->v[2]->sel = 1;
@@ -5532,7 +5529,6 @@
 					fface->v[3]->sel = 1;
 			}
 		}
-
 		/* now mark the selected edges for deletion */
 
 		edge_count = 0;





More information about the Bf-blender-cvs mailing list