Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Poirier <theeth@yahoo.com>2006-05-22 05:59:28 +0400
committerMartin Poirier <theeth@yahoo.com>2006-05-22 05:59:28 +0400
commitf849384fcd6ec2174a2639b945fc537596eaeeb9 (patch)
tree4f69fc1211990221621402f1afbee8d8655e3313 /source/blender/python/api2_2x/Draw.c
parent58648f0ed23e074a4373a11c6c9fdae6f94515ea (diff)
=== Python API ===
Fixes for the bug introduced by my other commit the other day. Blender.Draw.Create now does proper error checking.
Diffstat (limited to 'source/blender/python/api2_2x/Draw.c')
-rw-r--r--source/blender/python/api2_2x/Draw.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Draw.c b/source/blender/python/api2_2x/Draw.c
index d6b0f179cca..661d1b805f9 100644
--- a/source/blender/python/api2_2x/Draw.c
+++ b/source/blender/python/api2_2x/Draw.c
@@ -785,6 +785,10 @@ static PyObject *Method_Create( PyObject * self, PyObject * args )
but = NULL;
PyErr_SetString( PyExc_TypeError, "expected string, float, int or 3-float tuple argument" );
}
+
+ if (but != NULL) {
+ PyErr_Clear();
+ }
return (PyObject*) but;
}