diff options
author | Dalai Felinto <dalai@blender.org> | 2020-03-06 17:17:47 +0300 |
---|---|---|
committer | Dalai Felinto <dalai@blender.org> | 2020-03-06 17:27:50 +0300 |
commit | 17f08cff6a12a1ba2ff336cac13ffc8d4b1e845e (patch) | |
tree | 95136c47ebfac37374e9e69cdef6fc49e0daad00 /source/blender/blenkernel/intern/lib_id.c | |
parent | 69d4aec55f9c5bc64c58e43edefc6687fcb9d08b (diff) |
Cleanup: Collection: Move to IDTypeInfo, and remove unused BKE API.
Note: we still need BKE_collection_free since we call it from scene.c.
Diffstat (limited to 'source/blender/blenkernel/intern/lib_id.c')
-rw-r--r-- | source/blender/blenkernel/intern/lib_id.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/lib_id.c b/source/blender/blenkernel/intern/lib_id.c index 954f1d51b6f..a0de72deb99 100644 --- a/source/blender/blenkernel/intern/lib_id.c +++ b/source/blender/blenkernel/intern/lib_id.c @@ -540,9 +540,7 @@ bool BKE_lib_id_make_local(Main *bmain, ID *id, const bool test, const int flags } return true; case ID_GR: - if (!test) { - BKE_collection_make_local(bmain, (Collection *)id, flags); - } + BLI_assert(0); return true; case ID_AR: if (!test) { @@ -762,7 +760,7 @@ bool BKE_id_copy_ex(Main *bmain, const ID *id, ID **r_newid, const int flag) BKE_text_copy_data(bmain, (Text *)*r_newid, (Text *)id, flag); break; case ID_GR: - BKE_collection_copy_data(bmain, (Collection *)*r_newid, (Collection *)id, flag); + BLI_assert(0); break; case ID_AR: BKE_armature_copy_data(bmain, (bArmature *)*r_newid, (bArmature *)id, flag); |