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