From e8859c4e14984bcdb3dd6d3c9bfed05cd233251c Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Mon, 27 Oct 2025 17:28:03 +0100 Subject: cut satin: allow multiple cut position commands (#4015) --- lib/elements/element.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/elements') 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 -- cgit v1.2.3