mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 04:06:45 +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
|
(bsp/s :toolbar
|
||||||
(fill/x (align/c
|
(fill/x (align/c (bsp/w :pool
|
||||||
(bsp/s :outputs (bsp/s :inputs (bsp/s :tracks :scenes)))))))
|
(bsp/n :outputs (bsp/n :inputs (bsp/n :tracks :scenes)))))))
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,13 @@ impl Arranger {
|
||||||
name,
|
name,
|
||||||
};
|
};
|
||||||
self.tracks.push(track);
|
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])
|
Ok(&mut self.tracks[index])
|
||||||
}
|
}
|
||||||
pub fn track_del (&mut self, index: usize) {
|
pub fn track_del (&mut self, index: usize) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue