Cleanup: remove some temp dev asserts in new link/append code.

No longer needed now that all code uses that new
BKE_blendfile_link_append module, and that instantiation code in
BLO_readfile has been removed.
This commit is contained in:
Bastien Montagne 2021-12-06 11:28:31 +01:00
parent 9a69c456bd
commit 989d510e3e
1 changed files with 0 additions and 12 deletions

View File

@ -1056,12 +1056,6 @@ void BKE_blendfile_append(BlendfileLinkAppendContext *lapp_context, ReportList *
}
BLI_assert(item->userdata == NULL);
/* Linked IDs should never be marked as needing post-processing (instantiation of loose
* objects etc.).
* NOTE: This is a developer test check, can be removed once we get rid of instantiation code
* in BLO completely.*/
BLI_assert((id->tag & LIB_TAG_DOIT) == 0);
ID *existing_local_id = BKE_idtype_idcode_append_is_reusable(GS(id->name)) ?
BKE_main_library_weak_reference_search_item(
lapp_context->library_weak_reference_mapping,
@ -1381,12 +1375,6 @@ void BKE_blendfile_link(BlendfileLinkAppendContext *lapp_context, ReportList *re
}
BLI_assert(item->userdata == NULL);
/* Linked IDs should never be marked as needing post-processing (instantiation of loose
* objects etc.).
* NOTE: This is developer test check, can be removed once we get rid of instantiation code
* in BLO completely.*/
BLI_assert((id->tag & LIB_TAG_DOIT) == 0);
BlendfileLinkAppendContextCallBack cb_data = {
.lapp_context = lapp_context, .item = item, .reports = reports};
BKE_library_foreach_ID_link(lapp_context->params->bmain,