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 <bastien@blender.org>2020-05-12 19:54:38 +0300
committerBastien Montagne <bastien@blender.org>2020-05-12 19:54:57 +0300
commit13d0f74b8076a77dc1ea5725739f167128932312 (patch)
tree58e7320a37c346b2223da21da09c3a49246d80cc /source/blender/blenkernel/intern/lib_query.c
parent8ce0c9111db489854ba7c7b9110ea55f39f16c16 (diff)
Refactor: Move lamp foreach_id to new IDTypeInfo structure.
Diffstat (limited to 'source/blender/blenkernel/intern/lib_query.c')
-rw-r--r--source/blender/blenkernel/intern/lib_query.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source/blender/blenkernel/intern/lib_query.c b/source/blender/blenkernel/intern/lib_query.c
index a890e26ecc3..8c29209f29d 100644
--- a/source/blender/blenkernel/intern/lib_query.c
+++ b/source/blender/blenkernel/intern/lib_query.c
@@ -925,11 +925,7 @@ static void library_foreach_ID_link(Main *bmain,
}
case ID_LA: {
- Light *lamp = (Light *)id;
- if (lamp->nodetree) {
- /* nodetree **are owned by IDs**, treat them as mere sub-data and not real ID! */
- BKE_library_foreach_ID_embedded(&data, (ID **)&lamp->nodetree);
- }
+ BLI_assert(0);
break;
}