Browse Source

Fix primitive node control value not getting loaded.

pull/1836/head
comfyanonymous 1 year ago
parent
commit
8cfce083c4
  1. 6
      web/extensions/core/widgetInputs.js

6
web/extensions/core/widgetInputs.js

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

Loading…
Cancel
Save