From 21bf29001341eba7734b0d3ca4a99677089ba6b2 Mon Sep 17 00:00:00 2001 From: Timon Date: Fri, 26 Jun 2026 09:48:14 +0000 Subject: [PATCH] Hide node parameters connected to a NodeInput::Scope in the Properties panel (#4284) Hide inputs connected to a scope in properties panel --- .../portfolio/document/node_graph/node_properties.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/editor/src/messages/portfolio/document/node_graph/node_properties.rs b/editor/src/messages/portfolio/document/node_graph/node_properties.rs index 89b5e4a2f5..6ce0789861 100644 --- a/editor/src/messages/portfolio/document/node_graph/node_properties.rs +++ b/editor/src/messages/portfolio/document/node_graph/node_properties.rs @@ -2281,6 +2281,14 @@ pub(crate) fn generate_node_properties(node_id: NodeId, context: &mut NodeProper } else { let number_of_inputs = context.network_interface.number_of_inputs(&node_id, context.selection_network_path); for input_index in 1..number_of_inputs { + // Hide inputs that are connected to a scope + if let Some(NodeInput::Scope(_)) = context + .network_interface + .input_from_connector(&InputConnector::node(node_id, input_index), context.selection_network_path) + { + continue; + } + let row = context.call_widget_override(&node_id, input_index).unwrap_or_else(|| { let Some(implementation) = context.network_interface.implementation(&node_id, context.selection_network_path) else { log::error!("Could not get implementation for node {node_id}");