forked from blender/blender
Move bpy_hydra.export_mtlx() exception handling to C code #28
@ -79,12 +79,15 @@ void MaterialData::init()
|
|||||||
err_str += PyUnicode_AsUTF8(pstr);
|
err_str += PyUnicode_AsUTF8(pstr);
|
||||||
Py_DECREF(pstr);
|
Py_DECREF(pstr);
|
||||||
}
|
}
|
||||||
|
CLOG_ERROR(
|
||||||
|
LOG_BSD, "Export error for %s (%s): %s", prim_id.GetText(), id->name, err_str.c_str());
|
||||||
|
if (traceback) {
|
||||||
|
PyTraceBack_Print(traceback, PySys_GetObject("stderr"));
|
||||||
|
}
|
||||||
Py_XDECREF(traceback);
|
Py_XDECREF(traceback);
|
||||||
Py_XDECREF(value);
|
Py_XDECREF(value);
|
||||||
Py_DECREF(type);
|
Py_DECREF(type);
|
||||||
|
|
||||||
CLOG_ERROR(
|
|
||||||
LOG_BSD, "Export error for %s (%s): %s", prim_id.GetText(), id->name, err_str.c_str());
|
|
||||||
}
|
}
|
||||||
Py_DECREF(module);
|
Py_DECREF(module);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user