Skip to content

Commit 6844961

Browse files
Fix a previewed node's dashed output wire appearing at the wrong position (#4282)
* Fix node graph connection to export in wrong place Co-authored-by: James Lindsay <78500760+0HyperCube@users.noreply.github.com> * Review --------- Co-authored-by: James Lindsay <78500760+0HyperCube@users.noreply.github.com>
1 parent f3faefd commit 6844961

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

editor/src/messages/portfolio/document/utility_types/network_interface.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4239,6 +4239,10 @@ impl NodeNetworkInterface {
42394239
}
42404240
NodeTypePersistentMetadata::Node(_) => {}
42414241
}
4242+
// Altering an export may move the connectors meaning the ports must be refreshed.
4243+
if matches!(input_connector, InputConnector::Export(_)) {
4244+
self.unload_import_export_ports(network_path);
4245+
}
42424246
self.unload_upstream_node_click_targets(vec![*upstream_node_id], network_path);
42434247
self.unload_stack_dependents(network_path);
42444248
self.try_set_upstream_to_chain(input_connector, network_path);

0 commit comments

Comments
 (0)