mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-12 04:15:31 +00:00
M12: the calculations after a focus script get the session's time scale too
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user