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; std::string path;
if (!PyErr_Occurred() && PyUnicode_Check(result)) { if (!PyErr_Occurred()) {
DagerD marked this conversation as resolved Outdated

Move PyUnicode_Check(result) into block below

Move `PyUnicode_Check(result)` into block below
path = PyUnicode_AsUTF8(result); if (PyUnicode_Check(result)) {
path = PyUnicode_AsUTF8(result);
}
Py_DECREF(result); Py_DECREF(result);
} }
else { else {