From 54b0a3d6bf77b4c7b23f299ae1600399b80092df Mon Sep 17 00:00:00 2001 From: George Steel Date: Sun, 11 Dec 2022 22:29:29 -0500 Subject: add comment on set_param --- lib/elements/element.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/elements/element.py') 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)) -- cgit v1.2.3