diff options
author | Julian Eisel <julian@blender.org> | 2022-08-19 22:56:09 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2022-08-19 23:22:25 +0300 |
commit | c2a6c3a4e24193893626ebbf07b0f02ce250cc61 (patch) | |
tree | 127af35399ce5ef985878d1aefc0a708ba09dc28 /source/blender/editors/space_outliner/outliner_tree.cc | |
parent | 51b79e4775e1f661df9aac60b7d355b72aa8b748 (diff) |
Outliner: Refactor how lazy-building of children is done
Makes the lazy-building (where children are only built when the parent
isn't collapsed) more generic, so more display modes can use it. So far
this was hardcoded for the "Data API" display mode.
This will be used to work around a big performance issue with the
Library Overrides Hierachies view in a complex production file, see
following commit.
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_tree.cc')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_tree.cc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/source/blender/editors/space_outliner/outliner_tree.cc b/source/blender/editors/space_outliner/outliner_tree.cc index 3357a456e30..cc610d1e777 100644 --- a/source/blender/editors/space_outliner/outliner_tree.cc +++ b/source/blender/editors/space_outliner/outliner_tree.cc @@ -221,11 +221,6 @@ bool outliner_requires_rebuild_on_select_or_active_change(const SpaceOutliner *s return exclude_flags & (SO_FILTER_OB_STATE_SELECTED | SO_FILTER_OB_STATE_ACTIVE); } -bool outliner_requires_rebuild_on_open_change(const SpaceOutliner *space_outliner) -{ - return ELEM(space_outliner->outlinevis, SO_DATA_API); -} - /* special handling of hierarchical non-lib data */ static void outliner_add_bone(SpaceOutliner *space_outliner, ListBase *lb, |