From ffc07fb580198b84114794aa33f4e77abcafc92f Mon Sep 17 00:00:00 2001 From: Rodz Labs Date: Tue, 1 Aug 2023 21:13:44 +0200 Subject: [PATCH] Fixed copy/duplicate problem in Graphedit (API change in Godot 4.2) --- material_maker/panels/graph_edit/graph_edit.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/material_maker/panels/graph_edit/graph_edit.gd b/material_maker/panels/graph_edit/graph_edit.gd index dbb1eab73..24e55863b 100644 --- a/material_maker/panels/graph_edit/graph_edit.gd +++ b/material_maker/panels/graph_edit/graph_edit.gd @@ -688,8 +688,8 @@ func serialize_selection(nodes = []) -> Dictionary: s.node_position = { x=p.x, y=p.y } data.nodes.append(s) for c in get_connection_list(): - var from = get_node(NodePath(c.from)) - var to = get_node(NodePath(c.to)) + var from = get_node(NodePath(c.from_node)) + var to = get_node(NodePath(c.to_node)) if from != null and from.selected and to != null and to.selected: var connection = c.duplicate(true) connection.from = from.generator.name