diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2025-10-27 17:28:03 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-27 17:28:03 +0100 |
| commit | e8859c4e14984bcdb3dd6d3c9bfed05cd233251c (patch) | |
| tree | 4aaad306282a42f9044fc411a2a77e890cb74ba7 /lib/elements | |
| parent | 0f95684bff102d8f573c17e806d37c35b59562d6 (diff) | |
cut satin: allow multiple cut position commands (#4015)
Diffstat (limited to 'lib/elements')
| -rw-r--r-- | lib/elements/element.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/elements/element.py b/lib/elements/element.py index f1e6eb36..8e66db58 100644 --- a/lib/elements/element.py +++ b/lib/elements/element.py @@ -514,11 +514,14 @@ class EmbroideryElement(object): return len(self.get_commands(command)) > 0 @cache - def get_command(self, command: str) -> Optional[Command]: + def get_command(self, command: str, multiple: bool = False) -> Optional[Command]: commands = self.get_commands(command) if commands: - return commands[0] + if multiple: + return commands + else: + return commands[0] else: return None |
