fix for error report in property registration, it wasnt printing the error.

This commit is contained in:
2012-03-03 00:20:05 +00:00
parent b3a0a33791
commit 95bba22af0

View File

@@ -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: "