From 5ee60c981573498a3f0d198bb89c55a064b451e4 Mon Sep 17 00:00:00 2001 From: Nathan Craddock Date: Thu, 27 Aug 2020 18:49:47 -0600 Subject: 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. --- source/blender/editors/space_outliner/outliner_edit.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/blender/editors/space_outliner/outliner_edit.c') 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; } -- cgit v1.2.3