From 0c376d1f9b3ac9898dd262141a70bb3fa17d6a14 Mon Sep 17 00:00:00 2001 From: Dennis Kobert Date: Mon, 30 Jun 2025 12:07:09 +0200 Subject: [PATCH] Disable preprocessor insertion of IntoNodes in the graph to avoid intermittent math node type errors (#2802) Disable insertion of into nodes into the graph --- editor/src/node_graph_executor/runtime.rs | 4 +--- node-graph/preprocessor/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/editor/src/node_graph_executor/runtime.rs b/editor/src/node_graph_executor/runtime.rs index 40ca633f0..a93f73546 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 3e0d2d172..50c265f92 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();