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:
authorCampbell Barton <ideasman42@gmail.com>2012-03-03 04:20:05 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-03-03 04:20:05 +0400
commit95bba22af075148f9cbdb5a9b1ef41aeff1f560f (patch)
treecf7a8fc72a41c350f6c4ca2db41adc6875d1cc59 /source/blender/python
parentb3a0a33791e44f6f749ae6093c4b911675733b70 (diff)
fix for error report in property registration, it wasnt printing the error.
Diffstat (limited to 'source/blender/python')
-rw-r--r--source/blender/python/intern/bpy_rna.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c
index cb178519b6a..ab6d23ba4db 100644
--- a/source/blender/python/intern/bpy_rna.c
+++ b/source/blender/python/intern/bpy_rna.c
@@ -6500,15 +6500,17 @@ static int deferred_register_prop(StructRNA *srna, PyObject *key, PyObject *item
py_ret = PyObject_Call(py_func, args_fake, py_kw);
- Py_DECREF(args_fake); /* free's py_srna_cobject too */
-
if (py_ret) {
Py_DECREF(py_ret);
+ Py_DECREF(args_fake); /* free's py_srna_cobject too */
}
else {
+ /* _must_ print before decreffing args_fake */
PyErr_Print();
PyErr_Clear();
+ Py_DECREF(args_fake); /* free's py_srna_cobject too */
+
// PyC_LineSpit();
PyErr_Format(PyExc_ValueError,
"bpy_struct \"%.200s\" registration error: "