diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2023-12-28 06:53:29 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-28 06:53:29 +0100 |
| commit | 28dba296841d797176e301eff80e864457817e31 (patch) | |
| tree | e80e8bc8095251573ecf9b5520a6df282cee421f /lib/elements | |
| parent | c0bcdb6e25ff99bf21efcaaa479c7f15f834acd5 (diff) | |
troubleshoot: pointer on rail (#2657)
Diffstat (limited to 'lib/elements')
| -rw-r--r-- | lib/elements/satin_column.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/elements/satin_column.py b/lib/elements/satin_column.py index 40fc27be..3daf1085 100644 --- a/lib/elements/satin_column.py +++ b/lib/elements/satin_column.py @@ -684,10 +684,10 @@ class SatinColumn(EmbroideryElement): if len(self.csp) < 2: yield TooFewPathsError((0, 0)) elif len(self.rails) < 2: - yield TooFewPathsError(self.shape.centroid) + yield TooFewPathsError(self.flattened_rails[0].representative_point()) if not self.to_stitch_groups(): - yield NotStitchableError(self.shape.centroid) + yield NotStitchableError(self.flattened_rails[0].representative_point()) def _center_walk_is_odd(self): return self.center_walk_underlay_repeats % 2 == 1 |
