Workflow serialization fix

ensure user data for values in workflow isn't stripped
This commit is contained in:
space-nuko
2023-06-19 19:21:11 -05:00
parent 3275777d2f
commit 334692eb1a
4 changed files with 25 additions and 15 deletions

View File

@@ -357,9 +357,4 @@ export default abstract class ComfyWidgetNode<T = any> extends ComfyGraphNode {
this.value.set(value);
this.shownOutputProperties = (o as any).shownOutputProperties;
}
override stripUserState(o: SerializedLGraphNode) {
super.stripUserState(o);
(o as any).comfyValue = LiteGraph.cloneObject(this.properties.defaultValue);
}
}