diff options
| author | George Steel <george.steel@gmail.com> | 2022-12-11 22:29:29 -0500 |
|---|---|---|
| committer | George Steel <george.steel@gmail.com> | 2022-12-11 22:29:29 -0500 |
| commit | 54b0a3d6bf77b4c7b23f299ae1600399b80092df (patch) | |
| tree | c5bce221dde0c259794e52b90c31c8fb4dde59f8 | |
| parent | 903f724c888aea968e85b1e3f2817c66e64d7a02 (diff) | |
add comment on set_param
| -rw-r--r-- | lib/elements/element.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/elements/element.py b/lib/elements/element.py index b8b25b27..bf87d517 100644 --- a/lib/elements/element.py +++ b/lib/elements/element.py @@ -163,6 +163,8 @@ class EmbroideryElement(object): return self.get_split_float_param(param, default) * PIXELS_PER_MM def set_param(self, name, value): + # Sets a param on the node backing this element. Used by params dialog. + # After calling, this element is invalid due to caching and must be re-created to use the new value. param = INKSTITCH_ATTRIBS[name] self.node.set(param, str(value)) |
