diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2019-02-08 18:51:13 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2019-02-08 18:57:12 +0300 |
commit | 02581a7ef819bfd388420114280ab4a83f155eaf (patch) | |
tree | e7f701e53a86f4185eadf3c24a709dc307d1e60c /source/blender/editors/space_outliner | |
parent | 5228a10f6d4256e9261eb8fcad04a46688690520 (diff) |
Fix T61287: Object restrict viewport ignored in instanced collection
make_duplis_collection() depends on the collection object cache,
which was not freed upon object viewport disable change.
The best way to reproduce the bug was to instance the default
collection, disable the cube, save and re-open the file.
Now even if you set the original cube to be enabled, you wouldn't see
the instanced one until you forced collection cache to be freed (e.g.,
changing a collection disable state.
Diffstat (limited to 'source/blender/editors/space_outliner')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c index 40722eb7d45..84385afdb9f 100644 --- a/source/blender/editors/space_outliner/outliner_draw.c +++ b/source/blender/editors/space_outliner/outliner_draw.c @@ -288,7 +288,7 @@ static void hidebutton_base_flag_cb(bContext *C, void *poin, void *poin2) } if (changed_restrict_view) { - BKE_main_collection_sync(bmain); + BKE_main_collection_sync_remap(bmain); DEG_id_tag_update(&ob->id, LIB_TAG_COPIED_ON_WRITE); DEG_relations_tag_update(bmain); WM_main_add_notifier(NC_OBJECT | ND_DRAW, &ob->id); |