diff options
author | Stephen Swaney <sswaney@centurytel.net> | 2005-04-02 21:01:56 +0400 |
---|---|---|
committer | Stephen Swaney <sswaney@centurytel.net> | 2005-04-02 21:01:56 +0400 |
commit | 2e9f9e90a6efe1d0ce0859720336afae1fd4447b (patch) | |
tree | 3dd840617348304e67157d8c77cd5c904baca62e /source/blender/python/api2_2x/Object.c | |
parent | 8b3c8698a8991e1cd0943a7171f8dedde47e547e (diff) |
A little housekeeping:
Object.c - expand evil 1 character name. nicer error msg.
doc/Object.py - clarify Object.getData() doc
Diffstat (limited to 'source/blender/python/api2_2x/Object.c')
-rw-r--r-- | source/blender/python/api2_2x/Object.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/python/api2_2x/Object.c b/source/blender/python/api2_2x/Object.c index 9e28ead52b9..6fbfd2f45fc 100644 --- a/source/blender/python/api2_2x/Object.c +++ b/source/blender/python/api2_2x/Object.c @@ -119,7 +119,7 @@ static PyObject *Object_buildParts( BPy_Object * self ); static PyObject *Object_clearIpo( BPy_Object * self ); static PyObject *Object_clrParent( BPy_Object * self, PyObject * args ); static PyObject *Object_clearTrack( BPy_Object * self, PyObject * args ); -static PyObject *Object_getData(BPy_Object *self, PyObject *a, PyObject *kwd); +static PyObject *Object_getData(BPy_Object *self, PyObject *args, PyObject *kwd); static PyObject *Object_getDeltaLocation( BPy_Object * self ); static PyObject *Object_getDrawMode( BPy_Object * self ); static PyObject *Object_getDrawType( BPy_Object * self ); @@ -764,16 +764,16 @@ int EXPP_add_obdata( struct Object *object ) } -static PyObject *Object_getData( BPy_Object *self, PyObject *a, PyObject *kwd ) +static PyObject *Object_getData( BPy_Object *self, PyObject *args, PyObject *kwd ) { PyObject *data_object; Object *object = self->object; int name_only = 0; static char *kwlist[] = {"name_only", NULL}; - if (!PyArg_ParseTupleAndKeywords(a, kwd, "|i", kwlist, &name_only)) + if (!PyArg_ParseTupleAndKeywords(args, kwd, "|i", kwlist, &name_only)) return EXPP_ReturnPyObjError( PyExc_AttributeError, - "expected nothing or an int (keyword 'name_only') as argument" ); + "expected nothing or bool keyword 'name_only' as argument" ); /* if there's no obdata, try to create it */ if( object->data == NULL ) { |