Fix T71026: Outliner - Show Hierarchy (Home Hotkey) Not Working Correctly

In 2.8, code would not enter the new 'Objects' and Collections'
'folders'.

Maniphest Tasks: T71026

Differential Revision: https://developer.blender.org/D6123
This commit is contained in:
Philipp Oeser 2019-10-23 14:54:14 +02:00
parent aff6446e06
commit d45c7c997f
Notes: blender-bot 2023-02-14 00:24:49 +01:00
Referenced by issue #71026, Outliner - Show Hierarchy (Home Hotkey) Not Working Correctly
1 changed files with 5 additions and 1 deletions

View File

@ -1600,7 +1600,11 @@ static void tree_element_show_hierarchy(Scene *scene, SpaceOutliner *soops, List
for (te = lb->first; te; te = te->next) {
tselem = TREESTORE(te);
if (tselem->type == 0) {
if (ELEM(tselem->type,
0,
TSE_SCENE_OBJECTS_BASE,
TSE_VIEW_COLLECTION_BASE,
TSE_LAYER_COLLECTION)) {
if (te->idcode == ID_SCE) {
if (tselem->id != (ID *)scene) {
tselem->flag |= TSE_CLOSED;