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