Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Craddock <nzcraddock@gmail.com>2020-08-27 06:29:45 +0300
committerNathan Craddock <nzcraddock@gmail.com>2020-08-27 06:29:45 +0300
commit7f3febf4c0d0d2aac2248dbc7c5782a6682ac79d (patch)
tree2d192bcc402ddbb22de69349891d18a4f9c485f0 /source/blender/editors/space_outliner/outliner_edit.c
parent489b5790cf182b5b25d2594499de5f5fee518dec (diff)
Fix (unreported): Outliner Data API tree subtree expansion
The changes in rB70151e41dc02 broke subtree expansion in the Data API display mode because the closed subtrees are empty lists. Move the empty subtree check from `outliner_item_openclose` to the walk navigation code to prevent the issue.
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_edit.c')
-rw-r--r--source/blender/editors/space_outliner/outliner_edit.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/editors/space_outliner/outliner_edit.c b/source/blender/editors/space_outliner/outliner_edit.c
index 99eb9a04c0e..8567dd4da13 100644
--- a/source/blender/editors/space_outliner/outliner_edit.c
+++ b/source/blender/editors/space_outliner/outliner_edit.c
@@ -152,11 +152,8 @@ void OUTLINER_OT_highlight_update(wmOperatorType *ot)
/* Open or close a tree element, optionally toggling all children recursively */
void outliner_item_openclose(TreeElement *te, bool open, bool toggle_all)
{
- if (BLI_listbase_is_empty(&te->subtree)) {
- return;
- }
-
TreeStoreElem *tselem = TREESTORE(te);
+
if (open) {
tselem->flag &= ~TSE_CLOSED;
}