Merge branch 'blender-v4.5-release'

This commit is contained in:
Campbell Barton
2025-07-04 09:19:25 +10:00

View File

@@ -2029,6 +2029,7 @@ static PyObject *callPythonFunction(string varName, string functionName, bool is
var = PyObject_GetAttrString(manta_main_module, varName.c_str());
if (!var) {
PyErr_Clear();
PyGILState_Release(gilstate);
return nullptr;
}
@@ -2037,12 +2038,17 @@ static PyObject *callPythonFunction(string varName, string functionName, bool is
Py_DECREF(var);
if (!func) {
PyErr_Clear();
PyGILState_Release(gilstate);
return nullptr;
}
if (!isAttribute) {
returnedValue = PyObject_CallObject(func, nullptr);
if (returnedValue == nullptr) {
/* Print any unexpected errors, also clear them. */
PyErr_Print();
}
Py_DECREF(func);
}