Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2018-10-29 13:42:38 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-10-29 13:42:38 +0300
commitf887dc1f5c8414f3a5ad6927730a3a74684ddf26 (patch)
tree41af4c8414ccb3380b54af7096db5df50d608508 /source/blender/blenkernel/intern/library_remap.c
parentc2791777bd8bd4a0375ada74b84c2142c6ce73cc (diff)
Fix T57372: Second full scene copy crashes on deletion.
Hope this time we are done for good (root of the issue was that master collections are not in bmain...).
Diffstat (limited to 'source/blender/blenkernel/intern/library_remap.c')
-rw-r--r--source/blender/blenkernel/intern/library_remap.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/source/blender/blenkernel/intern/library_remap.c b/source/blender/blenkernel/intern/library_remap.c
index 114159debe3..8a011b55cf3 100644
--- a/source/blender/blenkernel/intern/library_remap.c
+++ b/source/blender/blenkernel/intern/library_remap.c
@@ -326,17 +326,7 @@ static void libblock_remap_data_postprocess_collection_update(
Main *bmain, Collection *old_collection, Collection *new_collection)
{
if (new_collection == NULL) {
- /* In case we unlinked old_collection (new_collection is NULL), we need
- * to remove any collection children that have been set to NULL in the
- * because of pointer replacement. */
- if (old_collection != NULL) {
- BKE_collections_child_remove_nulls(bmain, old_collection);
- }
- else {
- for (Collection *collection = bmain->collection.first; collection; collection = collection->id.next) {
- BKE_collections_child_remove_nulls(bmain, collection);
- }
- }
+ BKE_collections_child_remove_nulls(bmain, old_collection);
}
BKE_main_collection_sync_remap(bmain);