Configurable defaults per workflow and reset

This commit is contained in:
space-nuko
2023-05-25 13:44:37 -05:00
parent ca3957d004
commit ebe798cbf1
5 changed files with 116 additions and 24 deletions

View File

@@ -355,7 +355,6 @@ export default abstract class ComfyWidgetNode<T = any> extends ComfyGraphNode {
override stripUserState(o: SerializedLGraphNode) {
super.stripUserState(o);
(o as any).comfyValue = this.defaultValue;
o.properties.defaultValue = null;
(o as any).comfyValue = this.properties.defaultValue;
}
}