add comment on set_param

pull/1918/head
George Steel 2022-12-11 22:29:29 -05:00
rodzic 903f724c88
commit 54b0a3d6bf
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -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))