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-03-15 21:35:17 +0300
committerDalai Felinto <dfelinto@gmail.com>2019-03-15 21:36:42 +0300
commitfcffbe1d1b31ed518b7a710c09d5fda389d8182e (patch)
tree541d3da6f607ddd9355304107661991e5c3e4722 /source/blender
parentfb4bb611559bdb9d7f7b5206a812965c9223c0a9 (diff)
Fix T62320: Outliner collection disable not propagating to other view layers
The moment you switched to another view layer the visibility was still outdated.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/space_outliner/outliner_draw.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c
index 044ab8f1b7b..929c179a62f 100644
--- a/source/blender/editors/space_outliner/outliner_draw.c
+++ b/source/blender/editors/space_outliner/outliner_draw.c
@@ -355,6 +355,7 @@ static int layer_collection_pushed_state_cb(bContext *UNUSED(C), void *poin)
static void hidebutton_layer_collection_flag_cb(bContext *C, void *poin, void *poin2)
{
+ Main *bmain = CTX_data_main(C);
wmWindow *win = CTX_wm_window(C);
Scene *scene = CTX_data_scene(C);
ViewLayer *view_layer = poin;
@@ -384,7 +385,8 @@ static void hidebutton_layer_collection_flag_cb(bContext *C, void *poin, void *p
DEG_id_tag_update(&scene->id, ID_RECALC_BASE_FLAGS);
if (depsgraph_changed) {
- DEG_relations_tag_update(CTX_data_main(C));
+ BKE_main_collection_sync_remap(bmain);
+ DEG_relations_tag_update(bmain);
}
WM_main_add_notifier(NC_SCENE | ND_LAYER_CONTENT, NULL);
}