From 0575532c603513d5e0beb93659e6898bd717d887 Mon Sep 17 00:00:00 2001 From: Julien Lubimiv Date: Thu, 30 Mar 2023 02:30:53 -0400 Subject: [PATCH] randomize is now default, seedControls are visible so long as seed is a widget --- web/extensions/core/widgetInputs.js | 2 +- web/scripts/app.js | 2 +- web/scripts/widgets.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/extensions/core/widgetInputs.js b/web/extensions/core/widgetInputs.js index efcdbb0a7..bdd8c95c8 100644 --- a/web/extensions/core/widgetInputs.js +++ b/web/extensions/core/widgetInputs.js @@ -287,7 +287,7 @@ app.registerExtension({ widget.value = theirWidget.value; } } - + if (widget.type === "combo") { addSeedControlWidget(this, widget, "randomize"); } diff --git a/web/scripts/app.js b/web/scripts/app.js index b1622b5e2..3ea49e6a7 100644 --- a/web/scripts/app.js +++ b/web/scripts/app.js @@ -771,7 +771,7 @@ class ComfyApp { widget.value = widget.value.slice(7); } } - + if (widget.name == "seed control after generating") { if (widget.value == true) { widget.value = "randomize"; diff --git a/web/scripts/widgets.js b/web/scripts/widgets.js index 4f7f169b3..9e286b389 100644 --- a/web/scripts/widgets.js +++ b/web/scripts/widgets.js @@ -50,7 +50,7 @@ export function addSeedControlWidget(node, targetWidget, defaultValue = "randomi console.log("default (fail)"); } }; - + return seedControl; }