diff options
author | Nathan Craddock <nzcraddock@gmail.com> | 2020-12-03 20:52:08 +0300 |
---|---|---|
committer | Nathan Craddock <nzcraddock@gmail.com> | 2020-12-05 03:54:19 +0300 |
commit | 48acf15f9856d6ffcd29cdd8b3a64dd9eb983cd0 (patch) | |
tree | fea2ce35811ae689c261fb2cf03ae1f22f9098cc /source/blender/editors/space_outliner/outliner_tree.c | |
parent | aaa02984d3978bcf94d9a98d1ac9139d5fbfca2d (diff) |
Cleanup: Outliner Data API display mode
No functional changes. Moves the data API display building code 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 | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/source/blender/editors/space_outliner/outliner_tree.c b/source/blender/editors/space_outliner/outliner_tree.c index 85203d1f4dd..52f91781967 100644 --- a/source/blender/editors/space_outliner/outliner_tree.c +++ b/source/blender/editors/space_outliner/outliner_tree.c @@ -2061,11 +2061,6 @@ void outliner_build_tree(Main *mainvar, SpaceOutliner *space_outliner, ARegion *region) { - TreeElement *ten; - TreeStoreElem *tselem; - /* on first view, we open scenes */ - int show_opened = !space_outliner->treestore || !BLI_mempool_len(space_outliner->treestore); - /* Are we looking for something - we want to tag parents to filter child matches * - NOT in data-blocks view - searching all data-blocks takes way too long to be useful * - this variable is only set once per tree build */ @@ -2119,17 +2114,8 @@ void outliner_build_tree(Main *mainvar, BLI_assert(false); } else if (space_outliner->outlinevis == SO_DATA_API) { - PointerRNA mainptr; - - RNA_main_pointer_create(mainvar, &mainptr); - - ten = outliner_add_element( - space_outliner, &space_outliner->tree, (void *)&mainptr, NULL, TSE_RNA_STRUCT, -1); - - if (show_opened) { - tselem = TREESTORE(ten); - tselem->flag &= ~TSE_CLOSED; - } + /* Ported to new tree-display, should be built there already. */ + BLI_assert(false); } else if (space_outliner->outlinevis == SO_ID_ORPHANS) { /* Ported to new tree-display, should be built there already. */ |