mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 11:46:41 +01:00
unBORK
This commit is contained in:
parent
a92981bb50
commit
156504b5ba
2 changed files with 9 additions and 3 deletions
|
|
@ -1,3 +1,3 @@
|
|||
(bsp/s :toolbar
|
||||
(fill/x (align/c
|
||||
(bsp/s :outputs (bsp/s :inputs (bsp/s :tracks :scenes)))))))
|
||||
(fill/x (align/c (bsp/w :pool
|
||||
(bsp/n :outputs (bsp/n :inputs (bsp/n :tracks :scenes)))))))
|
||||
|
|
|
|||
|
|
@ -40,7 +40,13 @@ impl Arranger {
|
|||
name,
|
||||
};
|
||||
self.tracks.push(track);
|
||||
let index = self.tracks.len() - 1;
|
||||
let len = self.tracks.len();
|
||||
let index = len - 1;
|
||||
for scene in self.scenes.iter_mut() {
|
||||
while scene.clips.len() < len {
|
||||
scene.clips.push(None);
|
||||
}
|
||||
}
|
||||
Ok(&mut self.tracks[index])
|
||||
}
|
||||
pub fn track_del (&mut self, index: usize) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue