[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11128] branches/2-44-stable/blender/ source/blender/python/api2_2x/Mesh.c: mixed decloration with getKey fix.
Campbell Barton
cbarton at metavr.com
Sat Jun 30 01:55:09 CEST 2007
Revision: 11128
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11128
Author: campbellbarton
Date: 2007-06-30 01:55:08 +0200 (Sat, 30 Jun 2007)
Log Message:
-----------
mixed decloration with getKey fix.
Modified Paths:
--------------
branches/2-44-stable/blender/source/blender/python/api2_2x/Mesh.c
Modified: branches/2-44-stable/blender/source/blender/python/api2_2x/Mesh.c
===================================================================
--- branches/2-44-stable/blender/source/blender/python/api2_2x/Mesh.c 2007-06-29 23:41:50 UTC (rev 11127)
+++ branches/2-44-stable/blender/source/blender/python/api2_2x/Mesh.c 2007-06-29 23:55:08 UTC (rev 11128)
@@ -2301,11 +2301,12 @@
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_SetItem( attr, 0, PyInt_FromLong(edge->v2) );
PyTuple_SetItem( attr, 1, PyInt_FromLong(edge->v1) );
More information about the Bf-blender-cvs
mailing list