Fix primitive node control value not getting loaded.

This commit is contained in:
comfyanonymous 2023-10-21 22:36:04 -04:00
parent a0690f9df9
commit 8cfce083c4

View File

@ -463,7 +463,11 @@ app.registerExtension({
} }
if (widget.type === "number" || widget.type === "combo") { if (widget.type === "number" || widget.type === "combo") {
addValueControlWidget(this, widget, "fixed"); let control_value = this.widgets_values?.[1];
if (!control_value) {
control_value = "fixed";
}
addValueControlWidget(this, widget, control_value);
} }
// When our value changes, update other widgets to reflect our changes // When our value changes, update other widgets to reflect our changes