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 18:38:04 +0300
committerBastien Montagne <b.mont29@gmail.com>2020-03-06 19:13:27 +0300
commita7fb567c18b5a831f7276a7d9a01646a177e6b5b (patch)
tree8e37a19feb5e69a701e0f0eedfb247839ae3a672 /source/blender/blenkernel/intern/lib_id.c
parentae6a5629a5fa83286bb56dccc7bc7f10e53810c8 (diff)
Cleanup: Material: Move to IDTypeInfo and remove unused BKE API.
Diffstat (limited to 'source/blender/blenkernel/intern/lib_id.c')
-rw-r--r--source/blender/blenkernel/intern/lib_id.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/source/blender/blenkernel/intern/lib_id.c b/source/blender/blenkernel/intern/lib_id.c
index 0f1dd16fdc5..33240dbeec8 100644
--- a/source/blender/blenkernel/intern/lib_id.c
+++ b/source/blender/blenkernel/intern/lib_id.c
@@ -482,9 +482,7 @@ bool BKE_lib_id_make_local(Main *bmain, ID *id, const bool test, const int flags
BLI_assert(0);
return true;
case ID_MA:
- if (!test) {
- BKE_material_make_local(bmain, (Material *)id, flags);
- }
+ BLI_assert(0);
return true;
case ID_TE:
if (!test) {
@@ -497,9 +495,7 @@ bool BKE_lib_id_make_local(Main *bmain, ID *id, const bool test, const int flags
}
return true;
case ID_LT:
- if (!test) {
- BKE_lattice_make_local(bmain, (Lattice *)id, flags);
- }
+ BLI_assert(0);
return true;
case ID_LA:
BLI_assert(0);
@@ -717,7 +713,7 @@ bool BKE_id_copy_ex(Main *bmain, const ID *id, ID **r_newid, const int flag)
BLI_assert(0);
break;
case ID_MA:
- BKE_material_copy_data(bmain, (Material *)*r_newid, (Material *)id, flag);
+ BLI_assert(0);
break;
case ID_TE:
BKE_texture_copy_data(bmain, (Tex *)*r_newid, (Tex *)id, flag);
@@ -1338,7 +1334,7 @@ void BKE_libblock_init_empty(ID *id)
BLI_assert(0);
break;
case ID_MA:
- BKE_material_init((Material *)id);
+ BLI_assert(0);
break;
case ID_TE:
BKE_texture_default((Tex *)id);