diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-05-24 15:46:09 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-05-24 15:48:23 +0300 |
commit | b4106ed17037b000d741c007ec1a8b88f6c2f5b7 (patch) | |
tree | 58957743708a4d53018d33abf37b9c331df87af8 /source/blender/editors/space_outliner/outliner_utils.c | |
parent | 39aea50155dc623db48f900d2b9644b607425b6c (diff) |
Fix T55175: outliner "Show Active" not working.
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_utils.c')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_utils.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/source/blender/editors/space_outliner/outliner_utils.c b/source/blender/editors/space_outliner/outliner_utils.c index 896f6c016d0..6b7035dd326 100644 --- a/source/blender/editors/space_outliner/outliner_utils.c +++ b/source/blender/editors/space_outliner/outliner_utils.c @@ -142,13 +142,11 @@ TreeElement *outliner_find_id(SpaceOops *soops, ListBase *lb, const ID *id) if (tselem->id == id) { return te; } - /* only deeper on scene collection or object */ - if (ELEM(te->idcode, ID_OB, ID_SCE, ID_GR)) { - TreeElement *tes = outliner_find_id(soops, &te->subtree, id); - if (tes) { - return tes; - } - } + } + + TreeElement *tes = outliner_find_id(soops, &te->subtree, id); + if (tes) { + return tes; } } return NULL; |