diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-06-16 16:24:41 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-06-16 16:24:41 +0400 |
commit | 39a526a963e9e0a0f206556a8b740fab56ba2654 (patch) | |
tree | 69290c8f2186c5dbc4673da0a6de60a874e18ab2 /source/blender/python/api2_2x/World.c | |
parent | 5135ed7b0e5c09c77a54e4359d7ff0b92003f4f0 (diff) |
Python PyMethodDef supports single argument methods (METH_O) but was using METH_VARARGS everywhere and getting the single args from the tuple.
Use METH_O where applicable.
Diffstat (limited to 'source/blender/python/api2_2x/World.c')
-rw-r--r-- | source/blender/python/api2_2x/World.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/python/api2_2x/World.c b/source/blender/python/api2_2x/World.c index ec73caa962b..aa956e15ebb 100644 --- a/source/blender/python/api2_2x/World.c +++ b/source/blender/python/api2_2x/World.c @@ -98,7 +98,7 @@ static int World_setStar( BPy_World * self, PyObject * args ); static PyObject *World_getMist( BPy_World * self ); static PyObject *World_oldsetMist( BPy_World * self, PyObject * args ); static int World_setMist( BPy_World * self, PyObject * args ); -static PyObject *World_getScriptLinks( BPy_World * self, PyObject * args ); +static PyObject *World_getScriptLinks( BPy_World * self, PyObject * value ); static PyObject *World_addScriptLink( BPy_World * self, PyObject * args ); static PyObject *World_clearScriptLinks( BPy_World * self, PyObject * args ); static PyObject *World_setCurrent( BPy_World * self ); @@ -209,7 +209,7 @@ static PyMethodDef BPy_World_methods[] = { "() - Return World Data mist"}, {"setMist", ( PyCFunction ) World_oldsetMist, METH_VARARGS, "() - Return World Data mist"}, - {"getScriptLinks", ( PyCFunction ) World_getScriptLinks, METH_VARARGS, + {"getScriptLinks", ( PyCFunction ) World_getScriptLinks, METH_O, "(eventname) - Get a list of this world's scriptlinks (Text names) " "of the given type\n" "(eventname) - string: FrameChanged, Redraw or Render."}, @@ -874,7 +874,7 @@ static PyObject *World_clearScriptLinks( BPy_World * self, PyObject * args ) } /* world.getScriptLinks */ -static PyObject *World_getScriptLinks( BPy_World * self, PyObject * args ) +static PyObject *World_getScriptLinks( BPy_World * self, PyObject * value ) { World *world = self->world; ScriptLink *slink = NULL; @@ -882,7 +882,7 @@ static PyObject *World_getScriptLinks( BPy_World * self, PyObject * args ) slink = &( world )->scriptlink; - ret = EXPP_getScriptLinks( slink, args, 0 ); + ret = EXPP_getScriptLinks( slink, value, 0 ); if( ret ) return ret; |