diff --git a/editor/src/node_graph_executor/runtime.rs b/editor/src/node_graph_executor/runtime.rs index 40ca633f09..a93f73546c 100644 --- a/editor/src/node_graph_executor/runtime.rs +++ b/editor/src/node_graph_executor/runtime.rs @@ -227,9 +227,7 @@ impl NodeRuntime { } async fn update_network(&mut self, mut graph: NodeNetwork) -> Result { - if cfg!(not(test)) { - preprocessor::expand_network(&mut graph, &self.substitutions); - } + preprocessor::expand_network(&mut graph, &self.substitutions); let scoped_network = wrap_network_in_scope(graph, self.editor_api.clone()); diff --git a/node-graph/preprocessor/src/lib.rs b/node-graph/preprocessor/src/lib.rs index 3e0d2d172e..50c265f92f 100644 --- a/node-graph/preprocessor/src/lib.rs +++ b/node-graph/preprocessor/src/lib.rs @@ -61,7 +61,7 @@ pub fn generate_node_substitutions() -> HashMap { ( NodeId(i as u64), match inputs.len() { - 1 => { + 1 if false => { let input = inputs.iter().next().unwrap(); let input_ty = input.nested_type();