File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
editor/src/messages/portfolio/document/utility_types Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -4005,6 +4005,14 @@ impl NodeNetworkInterface {
40054005 }
40064006 }
40074007 ( _, NodeInput :: Node { node_id : upstream_node_id, .. } ) => {
4008+ // If the old input wasn't exposed but the new one is (`Node` inputs are always exposed),
4009+ // the node's port count changed, so its click targets need to be recomputed
4010+ if !old_input. is_exposed ( )
4011+ && let InputConnector :: Node { node_id, .. } = input_connector
4012+ {
4013+ self . unload_node_click_targets ( node_id, network_path) ;
4014+ }
4015+
40084016 // Load structure if the change is to the document network and to the first or second
40094017 if network_path. is_empty ( ) {
40104018 if matches ! ( input_connector, InputConnector :: Export ( 0 ) ) {
You can’t perform that action at this time.
0 commit comments