UI: errors in buttons now show in info report

Mistakes in button expressions were previously only printed to the console.
This commit is contained in:
2015-05-18 09:12:26 +10:00
parent 3ed009af96
commit 29aae4db38
8 changed files with 85 additions and 27 deletions

View File

@@ -595,7 +595,7 @@ int BPY_button_exec(bContext *C, const char *expr, double *value, const bool ver
if (error_ret) {
if (verbose) {
BPy_errors_to_report(CTX_wm_reports(C));
BPy_errors_to_report_ex(CTX_wm_reports(C), false, false);
}
else {
PyErr_Clear();