From dc761dcd2a6c03daad9958c0effe0a77f9c73c38 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Sun, 26 Oct 2025 06:55:16 +0100 Subject: empty-d-object: define a default color (black) (#4018) --- lib/elements/empty_d_object.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/elements/empty_d_object.py b/lib/elements/empty_d_object.py index a7c91eda..0c84429a 100644 --- a/lib/elements/empty_d_object.py +++ b/lib/elements/empty_d_object.py @@ -31,5 +31,11 @@ class EmptyDObject(EmbroideryElement): def first_stitch(self): return None + @property + def color(self): + # We are not able to sitch this element, but some method calling the element may require a color definition. + # So let's simply define a black color + return 'black' + def to_stitch_groups(self, last_stitch_group, next_element=None): return [] -- cgit v1.2.3