diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2023-02-25 09:31:40 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-25 09:31:40 +0100 |
| commit | ed0ab5a44d08068e9f02bc689edc03899995e74b (patch) | |
| tree | af17ada374e2ab18d38bb62fe1a51024aa795910 /lib/elements/clone.py | |
| parent | 2cb1782fd31ba287ec21c22194e0b3bfa87aa2a1 (diff) | |
Clone Cache (#2086)
Co-authored-by: Lex Neva
Diffstat (limited to 'lib/elements/clone.py')
| -rw-r--r-- | lib/elements/clone.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/elements/clone.py b/lib/elements/clone.py index b5507e4f..5100def1 100644 --- a/lib/elements/clone.py +++ b/lib/elements/clone.py @@ -72,6 +72,11 @@ class Clone(EmbroideryElement): def flip_angle(self): return self.get_boolean_param('flip_angle') + def get_cache_key_data(self, previous_stitch): + source_node = get_clone_source(self.node) + source_elements = self.clone_to_element(source_node) + return [element.get_cache_key(previous_stitch) for element in source_elements] + def clone_to_element(self, node): from .utils import node_to_elements return node_to_elements(node, True) |
