diff options
-rw-r--r-- | source/blender/python/api2_2x/Geometry.c | 7 | ||||
-rw-r--r-- | source/blender/python/api2_2x/Geometry.h | 2 | ||||
-rw-r--r-- | source/blender/python/api2_2x/Node.c | 1 |
3 files changed, 6 insertions, 4 deletions
diff --git a/source/blender/python/api2_2x/Geometry.c b/source/blender/python/api2_2x/Geometry.c index 1ccb9e5503d..e0de63d842e 100644 --- a/source/blender/python/api2_2x/Geometry.c +++ b/source/blender/python/api2_2x/Geometry.c @@ -50,6 +50,11 @@ #define SWAP_FLOAT(a,b,tmp) tmp=a; a=b; b=tmp #define eul 0.000001 + +/*-- forward declarations -- */ +static PyObject *M_Geometry_PolyFill( PyObject * self, PyObject * args ); +static PyObject *M_Geometry_LineIntersect2D( PyObject * self, PyObject * args ); + /*-------------------------DOC STRINGS ---------------------------*/ static char M_Geometry_doc[] = "The Blender Geometry module\n\n"; static char M_Geometry_PolyFill_doc[] = "(veclist_list) - takes a list of polylines (each point a vector) and returns the point indicies for a polyline filled with triangles"; @@ -264,4 +269,4 @@ static PyObject *M_Geometry_LineIntersect2D( PyObject * self, PyObject * args ) return newVectorObject(newvec, 2, Py_NEW); } Py_RETURN_NONE; -}
\ No newline at end of file +} diff --git a/source/blender/python/api2_2x/Geometry.h b/source/blender/python/api2_2x/Geometry.h index 32eb0265e5f..4de3e8ef0e1 100644 --- a/source/blender/python/api2_2x/Geometry.h +++ b/source/blender/python/api2_2x/Geometry.h @@ -38,7 +38,5 @@ #include "vector.h" PyObject *Geometry_Init( void ); -static PyObject *M_Geometry_PolyFill( PyObject * self, PyObject * args ); -static PyObject *M_Geometry_LineIntersect2D( PyObject * self, PyObject * args ); #endif /* EXPP_Geometry_H */ diff --git a/source/blender/python/api2_2x/Node.c b/source/blender/python/api2_2x/Node.c index f5d6fa1d71a..770d630135f 100644 --- a/source/blender/python/api2_2x/Node.c +++ b/source/blender/python/api2_2x/Node.c @@ -107,7 +107,6 @@ static int Map_socketdef(PyObject *self, PyObject *args, void *closure) bNode *node = NULL; BPy_OutputDefMap *out= NULL; BPy_InputDefMap *in= NULL; - int pos=0; switch((int)closure) { case 'I': |