diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-03-03 05:11:07 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-03-03 13:50:20 +0300 |
commit | 3e5414e490a67adecb7364a53d09767d718c9025 (patch) | |
tree | 02c152346248b98cca2b9d84fee5c815e9c8e887 /source/blender/python/intern/bpy.c | |
parent | b02b8a3c003be496fc685a05f5c469b65743006a (diff) |
PyAPI: API for selectively writing data-blocks
Useful for writing asset-libraries to a file, eg.
`bpy.data.libraries.write(filepath, datablocks, relative_remap=False, fake_user=False)`
Diffstat (limited to 'source/blender/python/intern/bpy.c')
-rw-r--r-- | source/blender/python/intern/bpy.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy.c b/source/blender/python/intern/bpy.c index 930950a6600..c09b39139c2 100644 --- a/source/blender/python/intern/bpy.c +++ b/source/blender/python/intern/bpy.c @@ -322,7 +322,9 @@ void BPy_init_modules(void) PyModule_AddObject(mod, "types", BPY_rna_types()); /* needs to be first so bpy_types can run */ - BPY_library_module(mod); + BPY_library_load_module(mod); + BPY_library_write_module(mod); + BPY_rna_id_collection_module(mod); bpy_import_test("bpy_types"); |