Correct own fix reference before assignment
3rd fix for silly exception conversion!
This commit is contained in:
@@ -121,9 +121,12 @@ bool BPy_errors_to_report_ex(ReportList *reports, const bool use_full, const boo
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if 0 /* ARG!. workaround for a bug in blenders use of vsnprintf */
|
#if 0 /* ARG!. workaround for a bug in blenders use of vsnprintf */
|
||||||
BKE_reportf(reports, RPT_ERROR, "%s\nlocation: %s:%d\n", cstring, filename, lineno);
|
BKE_reportf(reports, RPT_ERROR, "%s\nlocation: %s:%d\n", _PyUnicode_AsString(pystring), filename, lineno);
|
||||||
#else
|
#else
|
||||||
pystring_format = PyUnicode_FromFormat(TIP_("%s\nlocation: %s:%d\n"), cstring, filename, lineno);
|
pystring_format = PyUnicode_FromFormat(
|
||||||
|
TIP_("%s\nlocation: %s:%d\n"),
|
||||||
|
_PyUnicode_AsString(pystring), filename, lineno);
|
||||||
|
|
||||||
cstring = _PyUnicode_AsString(pystring_format);
|
cstring = _PyUnicode_AsString(pystring_format);
|
||||||
BKE_report(reports, RPT_ERROR, cstring);
|
BKE_report(reports, RPT_ERROR, cstring);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user