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

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;
}