diff options
author | Bastien Montagne <bastien@blender.org> | 2020-05-07 17:48:43 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-05-07 17:49:11 +0300 |
commit | 95f8f321b6f5225febbfdd8846f37e2049e55fa2 (patch) | |
tree | efa342f8c2b36ec0d543a15405230ec54a4e7294 /source/blender/blenkernel/intern/lib_query.c | |
parent | 339c3e3473826c7c34877051ddf43c3d59055d1c (diff) |
Refactor: libquery: Add Material foreach_id support.
Diffstat (limited to 'source/blender/blenkernel/intern/lib_query.c')
-rw-r--r-- | source/blender/blenkernel/intern/lib_query.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/source/blender/blenkernel/intern/lib_query.c b/source/blender/blenkernel/intern/lib_query.c index 9ebcc80092e..27667b1e110 100644 --- a/source/blender/blenkernel/intern/lib_query.c +++ b/source/blender/blenkernel/intern/lib_query.c @@ -976,18 +976,7 @@ static void library_foreach_ID_link(Main *bmain, } case ID_MA: { - Material *material = (Material *)id; - if (material->nodetree) { - /* nodetree **are owned by IDs**, treat them as mere sub-data and not real ID! */ - BKE_library_foreach_ID_embedded(&data, (ID **)&material->nodetree); - } - if (material->texpaintslot != NULL) { - CALLBACK_INVOKE(material->texpaintslot->ima, IDWALK_CB_NOP); - } - if (material->gp_style != NULL) { - CALLBACK_INVOKE(material->gp_style->sima, IDWALK_CB_USER); - CALLBACK_INVOKE(material->gp_style->ima, IDWALK_CB_USER); - } + BLI_assert(0); break; } |