From 2c03d6a12be29b020dfdd483462322e4dd8f8d98 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 30 May 2018 07:31:35 +0200 Subject: DNA: add OB_DATA_SUPPORT_EDITMODE macro --- source/blender/editors/space_outliner/outliner_select.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors') diff --git a/source/blender/editors/space_outliner/outliner_select.c b/source/blender/editors/space_outliner/outliner_select.c index 760673e5a5f..9c3b9c7b179 100644 --- a/source/blender/editors/space_outliner/outliner_select.c +++ b/source/blender/editors/space_outliner/outliner_select.c @@ -951,7 +951,7 @@ static void do_outliner_item_activate_tree_element( WM_event_add_notifier(C, NC_SCENE | ND_OB_SELECT, scene); } - else if (ELEM(te->idcode, ID_ME, ID_CU, ID_MB, ID_LT, ID_AR)) { + else if (OB_DATA_SUPPORT_EDITMODE(te->idcode)) { WM_operator_name_call(C, "OBJECT_OT_editmode_toggle", WM_OP_INVOKE_REGION_WIN, NULL); } else { // rest of types -- cgit v1.2.3