Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Fix primitive node control value not getting loaded.

comfyanonymous8cfce083c4eb
diff --git a/web/extensions/core/widgetInputs.js b/web/extensions/core/widgetInputs.js
index 84abd8b7d..bad3ac3a7 100644
--- a/web/extensions/core/widgetInputs.js
+++ b/web/extensions/core/widgetInputs.js
@@ -463,7 +463,11 @@ app.registerExtension({
}
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