diff options
author | Nathan Craddock <nzcraddock@gmail.com> | 2020-12-03 20:34:09 +0300 |
---|---|---|
committer | Nathan Craddock <nzcraddock@gmail.com> | 2020-12-05 03:53:42 +0300 |
commit | aaa02984d3978bcf94d9a98d1ac9139d5fbfca2d (patch) | |
tree | 43e7ed8c9fefbe1c30a2083c0d0c655ab6d924f8 /source/blender/editors/space_outliner/outliner_tree.c | |
parent | 1db40c29e5f30f2d8b854f67129d9d44cd844a34 (diff) |
Cleanup: Outliner scenes display mode
No functional changes. The scene display building code has been moved
to C++.
Differential Revision: https://developer.blender.org/D9741
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_tree.c')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_tree.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/source/blender/editors/space_outliner/outliner_tree.c b/source/blender/editors/space_outliner/outliner_tree.c index f3c982d5995..85203d1f4dd 100644 --- a/source/blender/editors/space_outliner/outliner_tree.c +++ b/source/blender/editors/space_outliner/outliner_tree.c @@ -2061,7 +2061,7 @@ void outliner_build_tree(Main *mainvar, SpaceOutliner *space_outliner, ARegion *region) { - TreeElement *te = NULL, *ten; + TreeElement *ten; TreeStoreElem *tselem; /* on first view, we open scenes */ int show_opened = !space_outliner->treestore || !BLI_mempool_len(space_outliner->treestore); @@ -2111,18 +2111,8 @@ void outliner_build_tree(Main *mainvar, BLI_assert(false); } else if (space_outliner->outlinevis == SO_SCENES) { - Scene *sce; - for (sce = mainvar->scenes.first; sce; sce = sce->id.next) { - te = outliner_add_element(space_outliner, &space_outliner->tree, sce, NULL, 0, 0); - tselem = TREESTORE(te); - - /* New scene elements open by default */ - if ((sce == scene && show_opened) || !tselem->used) { - tselem->flag &= ~TSE_CLOSED; - } - - outliner_make_object_parent_hierarchy(&te->subtree); - } + /* Ported to new tree-display, should be built there already. */ + BLI_assert(false); } else if (space_outliner->outlinevis == SO_SEQUENCE) { /* Ported to new tree-display, should be built there already. */ |