Skip to content

Commit dc761dc

Browse files
authored
empty-d-object: define a default color (black) (#4018)
1 parent 722419a commit dc761dc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/elements/empty_d_object.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,11 @@ def shape(self):
3131
def first_stitch(self):
3232
return None
3333

34+
@property
35+
def color(self):
36+
# We are not able to sitch this element, but some method calling the element may require a color definition.
37+
# So let's simply define a black color
38+
return 'black'
39+
3440
def to_stitch_groups(self, last_stitch_group, next_element=None):
3541
return []

0 commit comments

Comments
 (0)