Commit: 5ee60c981573498a3f0d198bb89c55a064b451e4
Author: Nathan Craddock
Date: Thu Aug 27 18:49:47 2020 -0600
Branches: master
https://developer.blender.org/rB5ee60c981573498a3f0d198bb89c55a064b451e4
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.
===================================================================
M 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;
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs