error when a python operator gave an incorrect return value was near useless, re-raise a more comprehensive error which includes the operator name.

This commit is contained in:
2011-08-25 17:54:30 +00:00
parent 166970f68e
commit 9436769cd4
2 changed files with 16 additions and 2 deletions

View File

@@ -293,7 +293,7 @@ static PyObject *pyop_call(PyObject *UNUSED(self), PyObject *args)
* function corrects bpy.data (internal Main pointer) */
BPY_modules_update(C);
/* needed for when WM_OT_read_factory_settings us called fro within a script */
/* needed for when WM_OT_read_factory_settings us called from within a script */
bpy_import_main_set(CTX_data_main(C));
/* return operator_ret as a bpy enum */