diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2024-03-11 13:53:45 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-11 13:53:45 +0100 |
| commit | 3b5ed7c3f2fba252e944a43dfe29458b485cad8b (patch) | |
| tree | 7d93418cd4e64e305daeba3dbeee86905253eb50 /lib/extensions/element_info.py | |
| parent | 3f2cdf3fa942a8fdca94b2c756cf6e94feae3193 (diff) | |
element info: fix metadata (#2772)
Diffstat (limited to 'lib/extensions/element_info.py')
| -rw-r--r-- | lib/extensions/element_info.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/extensions/element_info.py b/lib/extensions/element_info.py index c0d2cccb..846bba17 100644 --- a/lib/extensions/element_info.py +++ b/lib/extensions/element_info.py @@ -34,8 +34,8 @@ class ElementInfo(InkstitchExtension): stitch_groups = element.to_stitch_groups(previous_stitch_group) stitch_plan = stitch_groups_to_stitch_plan( stitch_groups, - collapse_len=self.metadata['collapse_len'], - min_stitch_len=self.metadata['min_stitch_len'] + collapse_len=self.metadata['collapse_len_mm'], + min_stitch_len=self.metadata['min_stitch_len_mm'] ) self.list_items.append(ListItem( @@ -137,8 +137,8 @@ class ElementInfo(InkstitchExtension): stitch_groups = self.elements_to_stitch_groups(self.elements) stitch_plan = stitch_groups_to_stitch_plan( stitch_groups, - collapse_len=self.metadata['collapse_len'], - min_stitch_len=self.metadata['min_stitch_len'] + collapse_len=self.metadata['collapse_len_mm'], + min_stitch_len=self.metadata['min_stitch_len_mm'] ) general_info_list_items.append(ListItem( @@ -159,7 +159,7 @@ class ElementInfo(InkstitchExtension): )) general_info_list_items.append(ListItem( name=_("Jumps"), - value=str(stitch_plan.num_jumps) + value=str(stitch_plan.num_jumps - 1) )) general_info_list_items.append(ListItem( name=_("Trims"), |
