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 803d3d8d5b - Show all commits

View File

@ -2,6 +2,7 @@
* Copyright 2011-2022 Blender Foundation */
#include <Python.h>
#include <unicodeobject.h>
#include <pxr/imaging/hd/material.h>
#include <pxr/imaging/hd/renderDelegate.h>
@ -110,7 +111,7 @@ void MaterialData::export_mtlx()
std::string path;
if (!PyErr_Occurred()) {
if (!PyErr_Occurred() && PyUnicode_Check(result)) {
path = PyUnicode_AsUTF8(result);
Py_DECREF(result);
}