forked from blender/blender
Fix review comments #51
@ -111,8 +111,10 @@ void MaterialData::export_mtlx()
|
||||
|
||||
std::string path;
|
||||
|
||||
if (!PyErr_Occurred() && PyUnicode_Check(result)) {
|
||||
path = PyUnicode_AsUTF8(result);
|
||||
if (!PyErr_Occurred()) {
|
||||
if (PyUnicode_Check(result)) {
|
||||
path = PyUnicode_AsUTF8(result);
|
||||
}
|
||||
Py_DECREF(result);
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user