diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2019-10-10 22:29:51 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2019-10-15 04:45:33 +0300 |
commit | af5cc8cbd411fd83584dafac281dd10e5c65312a (patch) | |
tree | 7a0db926758e9121d5db7baacaee19940cb49351 /source/blender/blenkernel/intern/collection.c | |
parent | 9100982e8097a14ba96f90cf40d5591e1447dd2f (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.c | 3 |
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; } |