diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2024-03-11 14:08:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-11 14:08:56 +0100 |
| commit | 4749eca8fdfe1b3fe362cacd409147ff89f35629 (patch) | |
| tree | 9536e6f9177086289d5c921a769e1ec7dc3d805e /lib/threads | |
| parent | 3121bbaedf7e76d92a029fad067828014f9f5fde (diff) | |
Add apply palette extension (#2738)
* add apply palette extension
* thread catalog: apply palette: do not overwrite cutwork settings
Diffstat (limited to 'lib/threads')
| -rw-r--r-- | lib/threads/catalog.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/threads/catalog.py b/lib/threads/catalog.py index 68dc2009..9c566668 100644 --- a/lib/threads/catalog.py +++ b/lib/threads/catalog.py @@ -98,6 +98,11 @@ class _ThreadCatalog(Sequence): def apply_palette(self, stitch_plan, palette): for color_block in stitch_plan: + if color_block.color.chart: + # do not overwrite cutwork settings + continue + + for color_block in stitch_plan: nearest = palette.nearest_color(color_block.color) color_block.color.name = nearest.name |
