Fix review comments #51

Merged
Bogdan Nagirniak merged 15 commits from BLEN-430 into hydra-render 2023-06-08 18:10:55 +02:00
Showing only changes of commit 20add010e1 - Show all commits

View File

@ -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 {