mixed decloration, own Lattice typo's
This commit is contained in:
@@ -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) );
|
||||
|
||||
Reference in New Issue
Block a user