diff options
author | Campbell Barton <ideasman42@gmail.com> | 2006-12-23 00:23:27 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2006-12-23 00:23:27 +0300 |
commit | ed47053fa66176c146c045a1dd3330cd6940ec74 (patch) | |
tree | a0378788034fe8744f90304ffbf83da84516ea1c /source/blender/python/api2_2x/Armature.c | |
parent | 080ecf33c1fb13f88c51e2540cf531cce2d79c3c (diff) |
Arnaure.Get() now raises an error when the name dosnt exist. added warning in docs.
Image - added img.fields, img.fields_odd, img.antialias, also updated the docs. replaced Py_BuildValue with faster list creation for getPixel functions.
Diffstat (limited to 'source/blender/python/api2_2x/Armature.c')
-rw-r--r-- | source/blender/python/api2_2x/Armature.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Armature.c b/source/blender/python/api2_2x/Armature.c index 38109cdce5b..a0c84b9aee9 100644 --- a/source/blender/python/api2_2x/Armature.c +++ b/source/blender/python/api2_2x/Armature.c @@ -1270,7 +1270,11 @@ static PyObject *M_Armature_Get(PyObject * self, PyObject * args) if (data != NULL){ return PyArmature_FromArmature(data); //*new* }else{ - return EXPP_incr_ret(Py_None); + char buffer[128]; + PyOS_snprintf( buffer, sizeof(buffer), + "Armature \"%s\" not found", name); + return EXPP_ReturnPyObjError( PyExc_ValueError, + buffer ); } } |