-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix a previewed node's dashed output wire appearing at the wrong position #4282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4239,6 +4239,10 @@ impl NodeNetworkInterface { | |
| } | ||
| NodeTypePersistentMetadata::Node(_) => {} | ||
| } | ||
| // Altering an export may move the connectors meaning the ports must be refreshed. | ||
| if matches!(input_connector, InputConnector::Export(_)) { | ||
| self.unload_import_export_ports(network_path); | ||
| } | ||
|
Comment on lines
+4242
to
+4245
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add a semicolon to the Additionally, note that disconnecting a node from an export (which is handled in the // Altering an export may move the connectors meaning the ports must be refreshed.
if matches!(input_connector, InputConnector::Export(_)) {
self.unload_import_export_ports(network_path);
} |
||
| self.unload_upstream_node_click_targets(vec![*upstream_node_id], network_path); | ||
| self.unload_stack_dependents(network_path); | ||
| self.try_set_upstream_to_chain(input_connector, network_path); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P2: This
unload_import_export_portscall only covers the case where a node is being connected to an export. However, disconnecting a node from an export (the(NodeInput::Node { .. }, NodeInput::Value { .. } | ...)arm) can also change whether the first export is a layer, affecting connector positions. Consider moving this check to the end ofset_inputso it runs for any successful export modification, or add an equivalent check in that arm.Prompt for AI agents