mixed decloration, own Lattice typo's

This commit is contained in:
2007-06-30 00:00:04 +00:00
parent d31999767b
commit 7b05c1023d
2 changed files with 42 additions and 72 deletions

View File

@@ -2541,11 +2541,12 @@ static PyObject *MEdge_getLength( BPy_MEdge * self )
static PyObject *MEdge_getKey( BPy_MEdge * self )
{
PyObject *attr;
MEdge *edge = MEdge_get_pointer( self );
if (!edge)
return NULL; /* error is set */
PyObject *attr = PyTuple_New( 2 );
attr = PyTuple_New( 2 );
if (edge->v1 > edge->v2) {
PyTuple_SET_ITEM( attr, 0, PyInt_FromLong(edge->v2) );
PyTuple_SET_ITEM( attr, 1, PyInt_FromLong(edge->v1) );