From f28c2c6b31994bd5c0842f12b9e8ccc5741bb917 Mon Sep 17 00:00:00 2001 From: shanexi Date: Mon, 28 Oct 2024 11:20:03 +0800 Subject: [PATCH] Replace with default value assigned --- web/shellagent.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/shellagent.js b/web/shellagent.js index 6504ae7..79be03e 100644 --- a/web/shellagent.js +++ b/web/shellagent.js @@ -147,6 +147,10 @@ app.registerExtension({ content: "Replace with ShellAgent Input Image", callback: () => { const node = addNode("ShellAgentPluginInputImage", this, { before: true }); + + const dvn = node.widgets.find(w => w.name === 'default_value') + dvn.value = this.widgets.find(w => w.name === 'image')?.value + app.graph.links.filter(l => l != null) .forEach(l => { const tn = app.graph._nodes_by_id[l.target_id]