summaryrefslogtreecommitdiff
path: root/lib/extensions/stitch_plan_preview.py
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2021-08-07 12:18:55 -0400
committerLex Neva <github.com@lexneva.name>2021-08-07 12:18:55 -0400
commit173548dee569b0503ba1ddeba5cb8aae74c44c46 (patch)
treec17c62c7f593524d3a72e668502506f1aebe5bd4 /lib/extensions/stitch_plan_preview.py
parent4b9df25a9a0203072c6a47b9ce29505561463fbf (diff)
rename more patch references
Diffstat (limited to 'lib/extensions/stitch_plan_preview.py')
-rw-r--r--lib/extensions/stitch_plan_preview.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/extensions/stitch_plan_preview.py b/lib/extensions/stitch_plan_preview.py
index 40ad6a2a..ac1a4a67 100644
--- a/lib/extensions/stitch_plan_preview.py
+++ b/lib/extensions/stitch_plan_preview.py
@@ -3,7 +3,7 @@
# Copyright (c) 2010 Authors
# Licensed under the GNU GPL version 3.0 or later. See the file LICENSE for details.
-from ..stitch_plan import patches_to_stitch_plan
+from ..stitch_plan import stitch_groups_to_stitch_plan
from ..svg import render_stitch_plan
from .base import InkstitchExtension
@@ -24,7 +24,7 @@ class StitchPlanPreview(InkstitchExtension):
self.metadata = self.get_inkstitch_metadata()
collapse_len = self.metadata['collapse_len_mm']
patches = self.elements_to_patches(self.elements)
- stitch_plan = patches_to_stitch_plan(patches, collapse_len=collapse_len)
+ stitch_plan = stitch_groups_to_stitch_plan(patches, collapse_len=collapse_len)
render_stitch_plan(svg, stitch_plan, realistic)
# translate stitch plan to the right side of the canvas