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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-01-03 17:17:01 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-01-03 17:19:32 +0300
commit481a75a08ab601891d82cf8b113331dd205054bc (patch)
tree492c5c5c20b6b14c63444cb026d0e0016d58b4f9 /source/blender/blenkernel/intern/collection.c
parentba1cae5a04d429e2f4e58d5fd1e740c70462620a (diff)
Fix T57177: redo select random operator selects hidden objects.
Diffstat (limited to 'source/blender/blenkernel/intern/collection.c')
-rw-r--r--source/blender/blenkernel/intern/collection.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/collection.c b/source/blender/blenkernel/intern/collection.c
index a3782deecad..bd7757a29c6 100644
--- a/source/blender/blenkernel/intern/collection.c
+++ b/source/blender/blenkernel/intern/collection.c
@@ -776,8 +776,9 @@ bool BKE_collection_is_in_scene(Collection *collection)
void BKE_collections_after_lib_link(Main *bmain)
{
- /* Update view layer collections to match any changes in linked
- * collections after file load. */
+ /* Need to update layer collections because objects might have changed
+ * in linked files, and because undo push does not include updated base
+ * flags since those are refreshed after the operator completes. */
BKE_main_collection_sync(bmain);
}