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:
authorBastien Montagne <b.mont29@gmail.com>2020-03-06 13:10:10 +0300
committerBastien Montagne <b.mont29@gmail.com>2020-03-06 13:27:54 +0300
commitaf5d2e38f7825d80e941b1bb91c443a29340b6f1 (patch)
tree3f067a7875dd5e999fa797588bf6cd347cc6f540 /source/blender/blenkernel/intern/lib_id.c
parent7d9a5b7b10b439f62bcc522fee307a942b859ccc (diff)
Cleanup: Scene: New IDTypeInfo, and remove unused API from BKE.
Diffstat (limited to 'source/blender/blenkernel/intern/lib_id.c')
-rw-r--r--source/blender/blenkernel/intern/lib_id.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/source/blender/blenkernel/intern/lib_id.c b/source/blender/blenkernel/intern/lib_id.c
index 92e9a7c6c79..0a0673b0d46 100644
--- a/source/blender/blenkernel/intern/lib_id.c
+++ b/source/blender/blenkernel/intern/lib_id.c
@@ -467,9 +467,7 @@ bool BKE_lib_id_make_local(Main *bmain, ID *id, const bool test, const int flags
switch ((ID_Type)GS(id->name)) {
case ID_SCE:
- if (!test) {
- BKE_scene_make_local(bmain, (Scene *)id, flags);
- }
+ BLI_assert(0);
return true;
case ID_OB:
if (!test) {
@@ -730,7 +728,7 @@ bool BKE_id_copy_ex(Main *bmain, const ID *id, ID **r_newid, const int flag)
switch ((ID_Type)GS(id->name)) {
case ID_SCE:
- BKE_scene_copy_data(bmain, (Scene *)*r_newid, (Scene *)id, flag);
+ BLI_assert(0);
break;
case ID_OB:
BKE_object_copy_data(bmain, (Object *)*r_newid, (Object *)id, flag);
@@ -1348,7 +1346,7 @@ void BKE_libblock_init_empty(ID *id)
/* Note that only ID types that are not valid when filled of zero should have a callback here. */
switch ((ID_Type)GS(id->name)) {
case ID_SCE:
- BKE_scene_init((Scene *)id);
+ BLI_assert(0);
break;
case ID_LI:
/* Nothing to do. */