diff options
| author | Kaalleen <reni@allenka.de> | 2022-01-30 15:48:51 +0100 |
|---|---|---|
| committer | Kaalleen <reni@allenka.de> | 2022-05-04 19:06:44 +0200 |
| commit | 3d1600ed039c9078bcb4a28328ab60eb96994dfd (patch) | |
| tree | 57a6d51e108747daa354762ccab8b635e283e7a7 /lib/elements/element.py | |
| parent | 82216b184c669d6dea26672e5c0771146e62ca39 (diff) | |
* autofill to fillstitch
* remove too complex warning for fillstitch
* some marker adjustments
Diffstat (limited to 'lib/elements/element.py')
| -rw-r--r-- | lib/elements/element.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/elements/element.py b/lib/elements/element.py index ef70510d..ee4eadbb 100644 --- a/lib/elements/element.py +++ b/lib/elements/element.py @@ -87,8 +87,11 @@ class EmbroideryElement(object): return params def replace_legacy_param(self, param): - value = self.node.get(param, "").strip() - self.set_param(param[10:], value) + # remove "embroider_" prefix + new_param = param[10:] + if new_param in INKSTITCH_ATTRIBS: + value = self.node.get(param, "").strip() + self.set_param(param[10:], value) del self.node.attrib[param] @cache @@ -267,6 +270,11 @@ class EmbroideryElement(object): return apply_transforms(self.path, self.node) @property + @cache + def paths(self): + return self.flatten(self.parse_path()) + + @property def shape(self): raise NotImplementedError( "INTERNAL ERROR: %s must implement shape()", self.__class__) |
