mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-13 01:41:18 +00:00
M12: the calculations after a focus script get the session's time scale too
This commit is contained in:
1 parent
470a89bda6
commit
4bd8a75504
1 file changed
+1
-1
@@ -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