Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-02-12 00:08:16 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-02-12 00:08:16 +0300
commitaa43e2ec29a9f73918b12001c6e4f4b4c63fd9c9 (patch)
tree17cb05debbb5fd7e38e65898a083382eb79e1f82 /source/blender/python/mathutils/mathutils_bvhtree.c
parentd21f44546951a29cea5524fcd2147e08de996c7d (diff)
PyAPI: use PyModule_AddType utility function
Diffstat (limited to 'source/blender/python/mathutils/mathutils_bvhtree.c')
-rw-r--r--source/blender/python/mathutils/mathutils_bvhtree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/mathutils/mathutils_bvhtree.c b/source/blender/python/mathutils/mathutils_bvhtree.c
index 1d477421e30..0f3e54dc41f 100644
--- a/source/blender/python/mathutils/mathutils_bvhtree.c
+++ b/source/blender/python/mathutils/mathutils_bvhtree.c
@@ -1331,7 +1331,7 @@ PyMODINIT_FUNC PyInit_mathutils_bvhtree(void)
return NULL;
}
- PyModule_AddObject(m, "BVHTree", (PyObject *)&PyBVHTree_Type);
+ PyModule_AddType(m, &PyBVHTree_Type);
return m;
}