The animation preview clock reads the frame's time once, in its input pass; a JPEG export ignores the transparent-background option as production does; browser-save tests follow a request's suggested folder

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Dylan M. TaylorandClaude Opus 5.5 committed 2026-11-27 19:41:29 +00:00
1 parent 414f2a3909
commit 149ca6ec1b
3 files changed
+7 -5

No files matched your search

+3 -1
View File
@@ -402,9 +402,11 @@ impl SlideApp {
self.sync_backstage();
self.keyboard(&ctx);
self.sync_backstage();
// The preview clock reads the frame's time once, in the pass that receives the frame's input; a rerun pass of
// the same frame shows the same moment.
if self.show.is_some() {
self.anim_preview = None;
} else if self.tick_anim_preview(ctx.input(|i| i.time)) {
} else if ctx.current_pass_index() == 0 && self.tick_anim_preview(ctx.input(|i| i.time)) {
ctx.request_repaint();
}
let show_page = self.show.is_some();
-3
View File
@@ -240,9 +240,6 @@ impl SlideApp {
let files = match format {
"png" | "jpeg" => {
let transparent = extra.get("transparentBackground").and_then(Value::as_bool).unwrap_or(false);
if transparent && format != "png" {
return self.file_failure("A transparent background is for PNG export".into());
}
web_image_files(&doc, slide, all, &title, ext, transparent)
}
_ => {
+4 -1
View File
@@ -100,7 +100,10 @@ fn downloaded(files: &ScriptedFiles) -> Vec<std::path::PathBuf> {
.requests()
.into_iter()
.filter(|request| request.kind == craft::host::PickKind::Save)
.filter_map(|request| request.file_name.map(std::path::PathBuf::from))
.filter_map(|request| {
let name = std::path::PathBuf::from(request.file_name?);
Some(request.directory.map_or_else(|| name.clone(), |dir| dir.join(&name)))
})
.filter(|path| files.file(path).is_some())
.collect()
}