Count tracks, not lanes, in track.clear_trim_automation's result

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Brandon ThomasandClaude Opus 5.5 committed 2026-10-13 04:21:20 -04:00
1 parent 93ddd419f5
commit 165fa98a90
1 file changed
+3 -1
+3 -1
View File
@@ -455,7 +455,9 @@ pub(super) fn clear_trim(e: &mut Engine, p: &Value) -> Result<Value> {
let Some(tr) = s.track_mut(*t) else { continue };
let before = tr.automation.len();
tr.automation.retain(|l| l.param != trim_param());
n += before - tr.automation.len();
if tr.automation.len() < before {
n += 1;
}
}
Ok(json!({"tracks": n}))
}