diff options
-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; } |