diff options
author | Martin Poirier <theeth@yahoo.com> | 2007-12-17 23:21:06 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2007-12-17 23:21:06 +0300 |
commit | 5dfef1ae3580aeef8601fca4883bf186be82f29d (patch) | |
tree | a07a14d1aa0443aba83c00bec25797feddbdad9d /source/blender/python/api2_2x/Mesh.c | |
parent | 293c91c305405799ce3ff72c60f7ea8347eb16b1 (diff) |
Reverting to 2_2x BPY
I was careful in selectively rolling back revisions, but if you've committed changes unrelated to BPY mixed with BPY changes, I might have reverted those too, so please double check.
Diffstat (limited to 'source/blender/python/api2_2x/Mesh.c')
-rw-r--r-- | source/blender/python/api2_2x/Mesh.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/source/blender/python/api2_2x/Mesh.c b/source/blender/python/api2_2x/Mesh.c index 8248816bc3d..4424fd08ffd 100644 --- a/source/blender/python/api2_2x/Mesh.c +++ b/source/blender/python/api2_2x/Mesh.c @@ -1,5 +1,5 @@ /* - * $Id$ + * $Id: Mesh.c 12892 2007-12-15 17:41:13Z joeedh $ * * ***** BEGIN GPL/BL DUAL LICENSE BLOCK ***** * @@ -5394,7 +5394,7 @@ static PyObject *MFaceSeq_delete( BPy_MFaceSeq * self, PyObject *args ) return 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,15 +5517,12 @@ static PyObject *MFaceSeq_delete( BPy_MFaceSeq * self, PyObject *args ) ++face_count; } } - - /* 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 ) { - 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; @@ -5533,7 +5530,6 @@ static PyObject *MFaceSeq_delete( BPy_MFaceSeq * self, PyObject *args ) fface->v[3]->sel = 1; } } - /* now mark the selected edges for deletion */ edge_count = 0; |