Fix primitive node control value not getting loaded.

This commit is contained in:
comfyanonymous 2023-10-21 22:36:04 -04:00
parent 4acad03054
commit 52f7c0f7ea

View File

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