Fix T55175: outliner "Show Active" not working.
This commit is contained in:
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
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue