Fix T55175: outliner "Show Active" not working.

This commit is contained in:
Brecht Van Lommel 2018-05-24 14:46:09 +02:00
parent 39aea50155
commit b4106ed170
Notes: blender-bot 2023-06-12 00:52:52 +02:00
Referenced by issue #55175, Outliner - "Show Active" does not work
1 changed files with 5 additions and 7 deletions

View File

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