From 2c3d2b98324935f9e6c32d2876186056cc3edd25 Mon Sep 17 00:00:00 2001 From: Kijai <40791699+kijai@users.noreply.github.com> Date: Fri, 9 Aug 2024 16:14:29 +0300 Subject: [PATCH] WidgetToString bugfix --- nodes/nodes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nodes/nodes.py b/nodes/nodes.py index 2508982..41dbb37 100644 --- a/nodes/nodes.py +++ b/nodes/nodes.py @@ -761,7 +761,8 @@ The 'any_input' is required for making sure the node you want the value from exi elif any_input is not None: if node["type"] == "WidgetToString" and node["id"] == int(unique_id) and not link_id: for node_input in node["inputs"]: - link_id = node_input["link"] + if node_input["name"] == "any_input": + link_id = node_input["link"] # Construct a map of links to node IDs for future reference node_outputs = node.get("outputs", None)