summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2025-10-26 06:55:16 +0100
committerGitHub <noreply@github.com>2025-10-26 06:55:16 +0100
commitdc761dcd2a6c03daad9958c0effe0a77f9c73c38 (patch)
treecf8d7ce2832676cea4523204126fdb6ff41f8836 /lib
parent722419aed923db27d4f60ada542936b9ea2171a6 (diff)
empty-d-object: define a default color (black) (#4018)
Diffstat (limited to 'lib')
-rw-r--r--lib/elements/empty_d_object.py6
1 files changed, 6 insertions, 0 deletions
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 []