mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 04:06:45 +01:00
wip: refactor pt.10, 301 errors
This commit is contained in:
parent
8aa1ba8d0f
commit
1405b82341
10 changed files with 199 additions and 177 deletions
|
|
@ -368,7 +368,7 @@ impl<E: Engine> Arrangement<E> {
|
|||
}
|
||||
pub fn scene_add (
|
||||
&mut self, name: Option<&str>, color: Option<ItemColor>
|
||||
) -> Usually<&mut Scene> {
|
||||
) -> Usually<&mut ArrangementScene> {
|
||||
let clips = vec![None;self.tracks.len()];
|
||||
let name = name.map(|x|x.to_string()).unwrap_or_else(||self.scene_default_name());
|
||||
self.scenes.push(Scene::new(name, clips, color));
|
||||
|
|
@ -482,7 +482,7 @@ impl ArrangementEditorMode {
|
|||
}
|
||||
}
|
||||
}
|
||||
impl Scene {
|
||||
impl ArrangementScene {
|
||||
pub fn new (
|
||||
name: impl AsRef<str>,
|
||||
clips: impl AsRef<[Option<Arc<RwLock<Phrase>>>]>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue