diff options
author | Nathan Craddock <nzcraddock@gmail.com> | 2020-07-03 21:48:00 +0300 |
---|---|---|
committer | Nathan Craddock <nzcraddock@gmail.com> | 2020-07-03 22:40:12 +0300 |
commit | 59ef43147eedf053fb529d67a87e6facad530f65 (patch) | |
tree | 1ac6a1d61a4b631e27b0ec1fc0065de947589d5c /source/blender/editors | |
parent | 57a48bd0ca1b04680644d85df5cebac2c4e12324 (diff) |
Cleanup: Remove unused outliner activation code
No functional changes. Remove commented calls to extern_set_butspace
and unused text activation code.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_select.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/source/blender/editors/space_outliner/outliner_select.c b/source/blender/editors/space_outliner/outliner_select.c index 5f025f08130..638f63cce62 100644 --- a/source/blender/editors/space_outliner/outliner_select.c +++ b/source/blender/editors/space_outliner/outliner_select.c @@ -550,10 +550,7 @@ static eOLDrawState tree_element_active_world(bContext *C, } if (tep == NULL || tselem->id == (ID *)scene) { - if (set != OL_SETSEL_NONE) { - // XXX extern_set_butspace(F8KEY, 0); - } - else { + if (set == OL_SETSEL_NONE) { return OL_DRAWSEL_NORMAL; } } @@ -840,8 +837,6 @@ static eOLDrawState tree_element_active_modifier(bContext *C, Object *ob = (Object *)tselem->id; WM_event_add_notifier(C, NC_OBJECT | ND_MODIFIER, ob); - - // XXX extern_set_butspace(F9KEY, 0); } return OL_DRAWSEL_NONE; @@ -857,8 +852,6 @@ static eOLDrawState tree_element_active_psys(bContext *C, Object *ob = (Object *)tselem->id; WM_event_add_notifier(C, NC_OBJECT | ND_PARTICLE | NA_EDITED, ob); - - // XXX extern_set_butspace(F7KEY, 0); } return OL_DRAWSEL_NONE; @@ -875,23 +868,11 @@ static int tree_element_active_constraint(bContext *C, Object *ob = (Object *)tselem->id; WM_event_add_notifier(C, NC_OBJECT | ND_CONSTRAINT, ob); - // XXX extern_set_butspace(F7KEY, 0); } return OL_DRAWSEL_NONE; } -static eOLDrawState tree_element_active_text(bContext *UNUSED(C), - Scene *UNUSED(scene), - ViewLayer *UNUSED(sl), - SpaceOutliner *UNUSED(soops), - TreeElement *UNUSED(te), - int UNUSED(set)) -{ - // XXX removed - return OL_DRAWSEL_NONE; -} - static eOLDrawState tree_element_active_pose(bContext *UNUSED(C), Scene *UNUSED(scene), ViewLayer *view_layer, @@ -1071,8 +1052,6 @@ eOLDrawState tree_element_active(bContext *C, return tree_element_active_material(C, tvc->scene, tvc->view_layer, te, set); case ID_WO: return tree_element_active_world(C, tvc->scene, tvc->view_layer, soops, te, set); - case ID_TXT: - return tree_element_active_text(C, tvc->scene, tvc->view_layer, soops, te, set); case ID_CA: return tree_element_active_camera(C, tvc->scene, tvc->view_layer, te, set); } |