M12: the calculations after a focus script get the session's time scale too

This commit is contained in:
Eric Kaden
2026-10-25 15:40:21 -04:00
parent 470a89bda6
commit 4bd8a75504
+1 -1
View File
@@ -938,7 +938,7 @@ pub(crate) fn on_focus(doc: &mut pdfcraft_cos::Document, tpl: &Template, som: &s
}
if !r.changes.is_empty() {
// The calculations that follow get a budget of their own.
r.clock = Clock::start(OPEN_BUDGET_MS);
r.clock = Clock::start(OPEN_BUDGET_MS.saturating_mul(u64::from(r.run.time_scale)));
r.calculates()?;
}
r.finish()