[Bf-blender-cvs] [d45c7c997f1] blender-v2.81-release: Fix T71026: Outliner - Show Hierarchy (Home Hotkey) Not Working Correctly

Philipp Oeser noreply at git.blender.org
Wed Oct 30 09:58:59 CET 2019


Commit: d45c7c997f18d16cacd8e955e1a99b6bf521f637
Author: Philipp Oeser
Date:   Wed Oct 23 14:54:14 2019 +0200
Branches: blender-v2.81-release
https://developer.blender.org/rBd45c7c997f18d16cacd8e955e1a99b6bf521f637

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

===================================================================

M	source/blender/editors/space_outliner/outliner_edit.c

===================================================================

diff --git a/source/blender/editors/space_outliner/outliner_edit.c b/source/blender/editors/space_outliner/outliner_edit.c
index c55140db46f..34bbf3a2a30 100644
--- a/source/blender/editors/space_outliner/outliner_edit.c
+++ b/source/blender/editors/space_outliner/outliner_edit.c
@@ -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;



More information about the Bf-blender-cvs mailing list