diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-06-30 04:00:04 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-06-30 04:00:04 +0400 |
commit | 7b05c1023dabdf09262dd6fd4b1ea13e397f6850 (patch) | |
tree | 0d0250e04a77cd07867eae86a03e3db3033b0c6b /source/blender/python/api2_2x/Mesh.c | |
parent | d31999767b635a7aeba2b0b152efa8155e3ec095 (diff) |
mixed decloration, own Lattice typo's
Diffstat (limited to 'source/blender/python/api2_2x/Mesh.c')
-rw-r--r-- | source/blender/python/api2_2x/Mesh.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Mesh.c b/source/blender/python/api2_2x/Mesh.c index 3e5ffa22eaf..f89a0d7479b 100644 --- a/source/blender/python/api2_2x/Mesh.c +++ b/source/blender/python/api2_2x/Mesh.c @@ -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) ); |