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:
authorDalai Felinto <dfelinto@gmail.com>2019-10-10 22:29:51 +0300
committerDalai Felinto <dfelinto@gmail.com>2019-10-15 04:45:33 +0300
commitaf5cc8cbd411fd83584dafac281dd10e5c65312a (patch)
tree7a0db926758e9121d5db7baacaee19940cb49351 /source/blender/blenkernel/intern/collection.c
parent9100982e8097a14ba96f90cf40d5591e1447dd2f (diff)
Fix T69644 / T68586: objects flag unsynced when drag hidden collections
That would lead to crashes and other issues. The solution is not elegant though, it involves resyncing all the collections again. Differential Revision: https://developer.blender.org/D6043
Diffstat (limited to 'source/blender/blenkernel/intern/collection.c')
-rw-r--r--source/blender/blenkernel/intern/collection.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/collection.c b/source/blender/blenkernel/intern/collection.c
index 931d248558d..68a38c94ff7 100644
--- a/source/blender/blenkernel/intern/collection.c
+++ b/source/blender/blenkernel/intern/collection.c
@@ -1305,6 +1305,9 @@ bool BKE_collection_move(Main *bmain,
BLI_ghash_free(view_layer_hash, NULL, NULL);
+ /* We need to sync it again to pass the correct flags to the collections objects. */
+ BKE_main_collection_sync(bmain);
+
return true;
}