From 5df4c0a4693c668645728de2d909f2c65907c054 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Fri, 24 May 2019 17:30:39 -0300 Subject: Outliner: Fix selecting collections in view layer selecting original objects Part of T64438. --- source/blender/editors/space_outliner/outliner_select.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/blender/editors/space_outliner/outliner_select.c b/source/blender/editors/space_outliner/outliner_select.c index ae17158829c..bee615108f9 100644 --- a/source/blender/editors/space_outliner/outliner_select.c +++ b/source/blender/editors/space_outliner/outliner_select.c @@ -1132,7 +1132,7 @@ static void do_outliner_item_activate_tree_element(bContext *C, WM_window_set_active_scene(CTX_data_main(C), C, CTX_wm_window(C), (Scene *)tselem->id); } } - else if (te->idcode == ID_GR) { + else if ((te->idcode == ID_GR) && (soops->outlinevis != SO_VIEW_LAYER)) { Collection *gr = (Collection *)tselem->id; if (extend) { -- cgit v1.2.3