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-28 03:49:47 +0300
committerNathan Craddock <nzcraddock@gmail.com>2020-08-28 03:49:47 +0300
commit5ee60c981573498a3f0d198bb89c55a064b451e4 (patch)
treeea4595a90de8d95b21c9968a0cd7634e1d276205
parente726ed3c6b6600b953c72604b8a0b891f27fd7f9 (diff)
Fix (unreported): Walk expansion on scene collection
Left walk navigation while the scene collection is active would collapse the subtree which shouldn't be allowed. This adds another check to `outliner_item_openclose` to prevent collapsing the scene collection. Introduced in rBb077de086e14.
-rw-r--r--source/blender/editors/space_outliner/outliner_edit.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/space_outliner/outliner_edit.c b/source/blender/editors/space_outliner/outliner_edit.c
index 498d26add48..ad7346a5651 100644
--- a/source/blender/editors/space_outliner/outliner_edit.c
+++ b/source/blender/editors/space_outliner/outliner_edit.c
@@ -161,7 +161,12 @@ void outliner_item_openclose(SpaceOutliner *space_outliner,
return;
}
+ /* Don't allow collapsing the scene collection. */
TreeStoreElem *tselem = TREESTORE(te);
+ if (tselem->type == TSE_VIEW_COLLECTION_BASE) {
+ return;
+ }
+
if (open) {
tselem->flag &= ~TSE_CLOSED;
}