diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-05-13 08:05:09 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-05-13 08:54:09 +0300 |
commit | 8f4f3cce0393f2fdbf91133feb147096c53fee3d (patch) | |
tree | 9864767bd6b54c1cd3ae67982843802168feeff9 /source/blender/python/intern/bpy.c | |
parent | 13130ca293f899c5df5f46b99019999585e0ad6a (diff) |
Cleanup: split RNA type extension methods into it's own API
This isn't so closely related to the RNA API,
it's a way to use the C/Python API to extend RNA types
and can be in it's own file.
Diffstat (limited to 'source/blender/python/intern/bpy.c')
-rw-r--r-- | source/blender/python/intern/bpy.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/python/intern/bpy.c b/source/blender/python/intern/bpy.c index 5a36535f3e3..9d0ee0bb500 100644 --- a/source/blender/python/intern/bpy.c +++ b/source/blender/python/intern/bpy.c @@ -44,6 +44,7 @@ #include "bpy_rna.h" #include "bpy_rna_gizmo.h" #include "bpy_rna_id_collection.h" +#include "bpy_rna_types_capi.h" #include "bpy_utils_previews.h" #include "bpy_utils_units.h" @@ -406,8 +407,8 @@ void BPy_init_modules(void) PyModule_AddObject(mod, "context", (PyObject *)bpy_context_module); - /* register bpy/rna classmethod callbacks */ - BPY_rna_register_cb(); + /* Register methods and property get/set for RNA types. */ + BPY_rna_types_extend_capi(); /* utility func's that have nowhere else to go */ PyModule_AddObject(mod, |