From 92ebbe5344ad26f934352502d5203bc14ebcc05e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lera=20Elvo=C3=A9?= Date: Mon, 20 May 2024 10:43:40 +0300 Subject: [PATCH] fix library group io nodes not having reference to group node on load --- classes/deck/deck.gd | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/classes/deck/deck.gd b/classes/deck/deck.gd index 67794e5..eba7a8c 100644 --- a/classes/deck/deck.gd +++ b/classes/deck/deck.gd @@ -694,24 +694,15 @@ static func from_dict(data: Dictionary, path: String = "") -> Deck: if not node.is_library: var group_data: Dictionary = groups_data[group_id] group = DeckHolder.add_group_from_dict(group_data, group_id, group_instance_id, deck.id) - group.get_node(node.input_node_id).group_node = node - group.get_node(node.output_node_id).group_node = node else: group = DeckHolder.add_lib_instance( node.group_id.get_file().trim_suffix(".deck"), deck.id, node.group_instance_id ) - for io_node_id: String in deck.nodes: - var io_node := deck.get_node(io_node_id) - if io_node.node_type == "group_input": - node.input_node_id = io_node._id - io_node.group_node = node - continue - if io_node.node_type == "group_output": - node.output_node_id = io_node._id - io_node.group_node = node - continue + + group.get_node(node.input_node_id).group_node = node + group.get_node(node.output_node_id).group_node = node node.init_io() return deck