[Bf-blender-cvs] [d5d518b96c1] master: Fix T62592: GPencil layer activation from outliner needed two clicks
Antonioya
noreply at git.blender.org
Fri Mar 15 14:38:53 CET 2019
Commit: d5d518b96c16bb36342d99f63aa7d1569e650cdf
Author: Antonioya
Date: Fri Mar 15 14:38:40 2019 +0100
Branches: master
https://developer.blender.org/rBd5d518b96c16bb36342d99f63aa7d1569e650cdf
Fix T62592: GPencil layer activation from outliner needed two clicks
For some reason, the code was commented and we missed to enable it again.
===================================================================
M source/blender/editors/space_outliner/outliner_select.c
===================================================================
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);
More information about the Bf-blender-cvs
mailing list