Configurable defaults per workflow and reset
This commit is contained in:
@@ -162,6 +162,8 @@ export default class ComfyComboNode extends ComfyWidgetNode<string> {
|
||||
override stripUserState(o: SerializedLGraphNode) {
|
||||
super.stripUserState(o);
|
||||
o.properties.values = []
|
||||
o.properties.defaultValue = null;
|
||||
(o as any).comfyValue = null
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user