FilmCraft: An open-source, nonlinear video editor written by scratch in pure Rust
project: share sequences across edit snapshots
David Campos7a719fe411fa
diff --git a/crates/interchange/src/common.rs b/crates/interchange/src/common.rsindex 5527e06ee..b8e6b4402 100644--- a/crates/interchange/src/common.rs+++ b/crates/interchange/src/common.rs@@ -378,7 +378,7 @@ impl Builder {/// Add an empty sequence item (filled later with [`Builder::put_sequence`]).pub fn reserve_sequence(&mut self, name: &str, settings: SequenceSettings, bin: Option<BinId>) -> ItemId {let seq = empty_sequence(settings);- self.p.add_item(name, Label::Forest, ItemKind::Sequence(Box::new(seq)), bin)+ self.p.add_item(name, Label::Forest, ItemKind::Sequence(std::sync::Arc::new(seq)), bin)}pub fn put_sequence(&mut self, id: ItemId, mut seq: Sequence) {