Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/readfile.c
| Show First 20 Lines • Show All 4,021 Lines • ▼ Show 20 Lines | if ((fd->flags & FD_FLAGS_IS_MEMFILE) == 0) { | ||||
| do_versions_after_linking(mainvar, fd->reports->reports); | do_versions_after_linking(mainvar, fd->reports->reports); | ||||
| } | } | ||||
| blo_join_main(&mainlist); | blo_join_main(&mainlist); | ||||
| /* And we have to compute those user-reference-counts again, as `do_versions_after_linking()` | /* And we have to compute those user-reference-counts again, as `do_versions_after_linking()` | ||||
| * does not always properly handle user counts, and/or that function does not take into | * does not always properly handle user counts, and/or that function does not take into | ||||
| * account old, deprecated data. */ | * account old, deprecated data. */ | ||||
| BKE_main_id_refcount_recompute(bfd->main, false); | BKE_main_id_refcount_recompute(bfd->main, false); | ||||
| } | |||||
| /* After all data has been read and versioned, uses LIB_TAG_NEW. */ | /* After all data has been read and versioned, uses LIB_TAG_NEW. Theoretically this should | ||||
| * not be calculated in the undo case, but it is currently needed to recalculate a cache. */ | |||||
| ntreeUpdateAllNew(bfd->main); | ntreeUpdateAllNew(bfd->main); | ||||
| } | |||||
| placeholders_ensure_valid(bfd->main); | placeholders_ensure_valid(bfd->main); | ||||
| BKE_main_id_tag_all(bfd->main, LIB_TAG_NEW, false); | BKE_main_id_tag_all(bfd->main, LIB_TAG_NEW, false); | ||||
| /* Now that all our data-blocks are loaded, | /* Now that all our data-blocks are loaded, | ||||
| * we can re-generate overrides from their references. */ | * we can re-generate overrides from their references. */ | ||||
| if ((fd->flags & FD_FLAGS_IS_MEMFILE) == 0) { | if ((fd->flags & FD_FLAGS_IS_MEMFILE) == 0) { | ||||
| ▲ Show 20 Lines • Show All 1,607 Lines • Show Last 20 Lines | |||||