diff options
author | Nathan Craddock <nzcraddock@gmail.com> | 2020-08-28 03:49:47 +0300 |
---|---|---|
committer | Nathan Craddock <nzcraddock@gmail.com> | 2020-08-28 03:49:47 +0300 |
commit | 5ee60c981573498a3f0d198bb89c55a064b451e4 (patch) | |
tree | ea4595a90de8d95b21c9968a0cd7634e1d276205 /source | |
parent | e726ed3c6b6600b953c72604b8a0b891f27fd7f9 (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.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_edit.c | 5 |
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; } |