diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2023-04-08 19:14:38 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-08 19:14:38 +0200 |
| commit | 36503c13e0315fcbd0439814455898f0952eaa86 (patch) | |
| tree | 06a3826007ec195ffcea4ef3ecd0e8060207bf16 /lib/gui/simulator.py | |
| parent | acdb911145972012cf8055c9accd31a235214ca7 (diff) | |
param simulator: stitch plan metadata (#2200)
Diffstat (limited to 'lib/gui/simulator.py')
| -rw-r--r-- | lib/gui/simulator.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/gui/simulator.py b/lib/gui/simulator.py index d9f51b48..2c1ccc2a 100644 --- a/lib/gui/simulator.py +++ b/lib/gui/simulator.py @@ -805,7 +805,10 @@ class SimulatorPreview(Thread): return if patches and not self.refresh_needed.is_set(): - stitch_plan = stitch_groups_to_stitch_plan(patches) + metadata = self.parent.metadata + collapse_len = metadata['collapse_len_mm'] + min_stitch_len = metadata['min_stitch_len_mm'] + stitch_plan = stitch_groups_to_stitch_plan(patches, collapse_len=collapse_len, min_stitch_len=min_stitch_len) # GUI stuff needs to happen in the main thread, so we ask the main # thread to call refresh_simulator(). |
