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
This commit is contained in:
parent
9100982e80
commit
af5cc8cbd4
Notes:
blender-bot
2023-02-14 00:53:05 +01:00
Referenced by issue #71274, Excluded collection become visible whene moved to another collection Referenced by issue #69644, Objects in hidden collection become visible when the hidden collection gets parented to a visible collection
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue