Fix T57320: Crash when adding a linked scene, then deleting it.

You want to check collections (for NULL children) first, before you
actually go into those children collections checking for NULL objects...
This commit is contained in:
Bastien Montagne 2018-10-21 17:22:09 +02:00
parent c989c5d37d
commit 7756973b0c
Notes: blender-bot 2023-02-14 06:17:14 +01:00
Referenced by issue #57320, Crash when adding a linked scene, then deleting it
1 changed files with 1 additions and 1 deletions

View File

@ -634,8 +634,8 @@ void BKE_libblock_relink_ex(
}
else {
/* No choice but to check whole objects/collections. */
libblock_remap_data_postprocess_object_update(bmain, NULL, NULL);
libblock_remap_data_postprocess_collection_update(bmain, NULL, NULL);
libblock_remap_data_postprocess_object_update(bmain, NULL, NULL);
}
break;
}