Skip to content

Commit

Permalink
Fixed copy/duplicate problem in Graphedit (API change in Godot 4.2)
Browse files Browse the repository at this point in the history
  • Loading branch information
RodZill4 committed Aug 1, 2023
1 parent 8ce8359 commit ffc07fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions material_maker/panels/graph_edit/graph_edit.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ffc07fb

Please sign in to comment.