From 78c3caf3c1b87f449837b11c903ddeaf00afe7b9 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 22 Feb 2021 22:26:20 +1100 Subject: Fix crash auto-completing bpy.types in the Python console Reference counting error in dc61a63e3f1bb3773677fb009fd787af7bd5c727 --- source/blender/python/intern/bpy_rna.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/python') diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c index ae0d5b46458..189d8308c14 100644 --- a/source/blender/python/intern/bpy_rna.c +++ b/source/blender/python/intern/bpy_rna.c @@ -7729,7 +7729,7 @@ static PyObject *bpy_types_module_dir(PyObject *self) PyObject *key, *value; Py_ssize_t pos = 0; while (PyDict_Next(submodule_dict, &pos, &key, &value)) { - PyList_APPEND(ret, key); + PyList_Append(ret, key); } return ret; } -- cgit v1.2.3