Import: Automatically Reload Footage is Off / Non-Sequence Footage / All Footage, as in After Effects; a reload never shows disk-cached frames from before (#578 follow-up)
Image sequences are watched only with All Footage (the default, Non-Sequence Footage, leaves them alone). Purge also forgets the viewer's per-revision disk keys, which hash footage files' size and time, so a file reloaded without a new revision is keyed again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QiAJeFttZp83Fh7YuzAR5f
This commit is contained in:
@@ -701,6 +701,12 @@ impl Frames {
|
||||
c.bytes = 0;
|
||||
c.gpu_bytes = 0;
|
||||
}
|
||||
// Disk keys hash the footage files' size and time, but are remembered per revision; a
|
||||
// file reloaded from disk without a new revision (a re-rendered image sequence) must be
|
||||
// keyed again, or the disk cache serves the frames from before.
|
||||
if let Ok(mut k) = self.content_keys.lock() {
|
||||
k.clear();
|
||||
}
|
||||
}
|
||||
|
||||
/// Queue a prefetch frame (no-op if cached or already queued/rendering).
|
||||
|
||||
@@ -1565,7 +1565,7 @@ impl EffectcraftApp {
|
||||
let focused = ctx.input(|i| i.focused);
|
||||
let was_focused: bool = ctx.data(|d| d.get_temp(focus_key)).unwrap_or(focused);
|
||||
ctx.data_mut(|d| d.insert_temp(focus_key, focused));
|
||||
if !self.session.prefs.import.reload_changed_footage || self.session.project.items.is_empty() {
|
||||
if self.session.prefs.import.auto_reload_footage == "off" || self.session.project.items.is_empty() {
|
||||
return;
|
||||
}
|
||||
let last: f64 = ctx.data(|d| d.get_temp(last_key)).unwrap_or(0.0);
|
||||
|
||||
Reference in New Issue
Block a user