From d5d518b96c16bb36342d99f63aa7d1569e650cdf Mon Sep 17 00:00:00 2001 From: Antonioya Date: Fri, 15 Mar 2019 14:38:40 +0100 Subject: Fix T62592: GPencil layer activation from outliner needed two clicks For some reason, the code was commented and we missed to enable it again. --- source/blender/editors/space_outliner/outliner_select.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/space_outliner') diff --git a/source/blender/editors/space_outliner/outliner_select.c b/source/blender/editors/space_outliner/outliner_select.c index 09fa6d63557..a1afe8b46ea 100644 --- a/source/blender/editors/space_outliner/outliner_select.c +++ b/source/blender/editors/space_outliner/outliner_select.c @@ -522,7 +522,7 @@ static eOLDrawState tree_element_active_defgroup( return OL_DRAWSEL_NONE; } -static eOLDrawState UNUSED_FUNCTION(tree_element_active_gplayer)( +static eOLDrawState tree_element_active_gplayer( bContext *C, Scene *UNUSED(scene), TreeElement *te, TreeStoreElem *tselem, const eOLSetState set) { bGPdata *gpd = (bGPdata *)tselem->id; @@ -980,7 +980,7 @@ eOLDrawState tree_element_type_active( case TSE_KEYMAP_ITEM: return tree_element_active_keymap_item(C, scene, view_layer, te, tselem, set); case TSE_GP_LAYER: - //return tree_element_active_gplayer(C, scene, s, te, tselem, set); + return tree_element_active_gplayer(C, scene, te, tselem, set); break; case TSE_VIEW_COLLECTION_BASE: return tree_element_active_master_collection(C, te, set); -- cgit v1.2.3