Fix T62592: GPencil layer activation from outliner needed two clicks

For some reason, the code was commented and we missed to enable it again.
This commit is contained in:
Antonio Vazquez 2019-03-15 14:38:40 +01:00
parent e583e86a9a
commit d5d518b96c
Notes: blender-bot 2023-02-14 03:21:30 +01:00
Referenced by issue #62592, Blender 2.80.48 Outliner grease pencil object layer selection/activation to draw, bug/behavior?
1 changed files with 2 additions and 2 deletions

View File

@ -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);