mirror of
https://codeberg.org/StreamGraph/StreamGraph.git
synced 2024-11-13 19:49:55 +01:00
fix library group io nodes not having reference to group node on load
This commit is contained in:
parent
903a801ba9
commit
92ebbe5344
1 changed files with 3 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue