pgraph: Fix assertion in PythonLoaderFileType with debug Python build

This commit is contained in:
rdb 2022-01-05 13:54:57 +01:00
parent b736b3e4db
commit d66ef59ecc
2 changed files with 5 additions and 0 deletions

View File

@ -48,6 +48,7 @@ Miscellaneous
* FilterManager mul parameter now accepts floating-point values (#1231)
* Assorted minor API documentation improvements
* Fix memory leak getting Bullet persistent manifolds from Python (#1193)
* Fix assertion in PythonLoaderFileType with debug Python build
* Add missing property interface to PlaneNode
* Fix prepare_scene() not properly invoking the Shader Generator
* Add name property to AICharacter class (#1205)

View File

@ -172,8 +172,12 @@ init(PyObject *loader) {
}
Py_DECREF(supports_compressed);
}
else {
PyErr_Clear();
}
_load_func = PyObject_GetAttrString(loader, "load_file");
PyErr_Clear();
_save_func = PyObject_GetAttrString(loader, "save_file");
PyErr_Clear();