Skip to content

Commit

Permalink
fix incorrect thread color handling
Browse files Browse the repository at this point in the history
  • Loading branch information
lexelby committed Aug 11, 2018
1 parent 12323fe commit da08fdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyembroidery/EmbPattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def add_thread(self, thread):
except KeyError:
color = thread["rgb"]
if isinstance(color, int):
thread_object.color = thread["color"]
thread_object.color = color
elif isinstance(color, str):
if color == "random":
thread_object.color = 0xFF000000 | random.randint(0, 0xFFFFFF)
Expand Down

0 comments on commit da08fdb

Please sign in to comment.