Readfile: debug check all IDs are properly linked at the end.
Should prevent issue fixed by previous commit to happen again (since read code, especially in undo case, is not really straight forward to follow anymore).
This commit is contained in:
parent
a54c1f1e77
commit
cd833d8879
Notes:
blender-bot
2023-02-14 09:48:25 +01:00
Referenced by issue #76291, 2.83 multires modify broken Bug
|
@ -10137,6 +10137,15 @@ static void lib_link_all(FileData *fd, Main *bmain)
|
|||
* 'permanently' in our data structures... */
|
||||
BKE_main_collections_parent_relations_rebuild(bmain);
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
/* Double check we do not have any 'need link' tag remaining, this should never be the case once
|
||||
* this function has run. */
|
||||
FOREACH_MAIN_ID_BEGIN (bmain, id) {
|
||||
BLI_assert((id->tag & LIB_TAG_NEED_LINK) == 0);
|
||||
}
|
||||
FOREACH_MAIN_ID_END;
|
||||
#endif
|
||||
}
|
||||
|
||||
/** \} */
|
||||
|
|
Loading…
Reference in New Issue