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()) {
|
||||
DagerD marked this conversation as resolved
Outdated
|
||||
if (PyUnicode_Check(result)) {
|
||||
path = PyUnicode_AsUTF8(result);
|
||||
}
|
||||
Py_DECREF(result);
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user
Move
PyUnicode_Check(result)
into block below