fix(view): update parent-visibility comment to describe OR rule (own membership or descendant visible)
This commit is contained in:
+5
-5
@@ -184,11 +184,11 @@ bool applyMode(ViewModeModel& model, const std::string& targetModeId, ReaProject
|
|||||||
model.clearSnapshot(guid);
|
model.clearSnapshot(guid);
|
||||||
}
|
}
|
||||||
|
|
||||||
// PARENT VISIBILITY (derived, never parked): a folder is visible iff at least
|
// PARENT VISIBILITY (never parked): visibleTracks() marks a parent visible when
|
||||||
// one of its descendant leaves is visible in the target mode. That derivation is
|
// a descendant leaf is visible in the target mode OR the parent belongs to the
|
||||||
// pure (membership + active mode), so it is recomputed every toggle rather than
|
// mode by its own membership (untagged folder → Arrange default). Recomputed
|
||||||
// snapshotted — the four leaf-park flags don't apply to parents. Drive only the
|
// every toggle rather than snapshotted. Drive only the two visibility flags;
|
||||||
// two visibility flags; never touch B_MAINSEND/I_FXEN/FX-offline on a parent.
|
// never touch B_MAINSEND/I_FXEN/FX-offline on a parent.
|
||||||
std::set<std::string> visible = model.visibleTracks(tree, targetModeId);
|
std::set<std::string> visible = model.visibleTracks(tree, targetModeId);
|
||||||
for (const FolderNode& node : tree.nodes) {
|
for (const FolderNode& node : tree.nodes) {
|
||||||
if (!node.isParent) continue;
|
if (!node.isParent) continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user