diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-02-12 00:08:16 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-02-12 00:08:16 +0300 |
commit | aa43e2ec29a9f73918b12001c6e4f4b4c63fd9c9 (patch) | |
tree | 17cb05debbb5fd7e38e65898a083382eb79e1f82 /source/blender/python/mathutils/mathutils_bvhtree.c | |
parent | d21f44546951a29cea5524fcd2147e08de996c7d (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.c | 2 |
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; } |