fix(app): footage drop auto-creates the media's track
A fresh sequence has no tracks and a drop rejected with 'display track does not exist'; wrong-kind drops also rejected. Dropping footage now creates a matching track first (the Premiere convention), so the drag-to-timeline path works on empty timelines too.
This commit is contained in:
@@ -424,6 +424,9 @@ impl<E: AppEngine> Render for TimelinePanel<E> {
|
||||
},
|
||||
))
|
||||
.on_drop(cx.listener(|this, drag: &FootageDrag, _window, cx| {
|
||||
if std::env::var("OAK_DEBUG_DRAG").is_ok() {
|
||||
eprintln!("[drag] timeline drop: {drag:?}");
|
||||
}
|
||||
this.finish_footage_drop(drag, cx);
|
||||
}))
|
||||
.child(self.timeline.clone()),
|
||||
|
||||
Reference in New Issue
Block a user