Skip to content

Commit 0c376d1

Browse files
authored
Disable preprocessor insertion of IntoNodes in the graph to avoid intermittent math node type errors (#2802)
Disable insertion of into nodes into the graph
1 parent 71ddae9 commit 0c376d1

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

editor/src/node_graph_executor/runtime.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,7 @@ impl NodeRuntime {
227227
}
228228

229229
async fn update_network(&mut self, mut graph: NodeNetwork) -> Result<ResolvedDocumentNodeTypesDelta, String> {
230-
if cfg!(not(test)) {
231-
preprocessor::expand_network(&mut graph, &self.substitutions);
232-
}
230+
preprocessor::expand_network(&mut graph, &self.substitutions);
233231

234232
let scoped_network = wrap_network_in_scope(graph, self.editor_api.clone());
235233

node-graph/preprocessor/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ pub fn generate_node_substitutions() -> HashMap<String, DocumentNode> {
6161
(
6262
NodeId(i as u64),
6363
match inputs.len() {
64-
1 => {
64+
1 if false => {
6565
let input = inputs.iter().next().unwrap();
6666
let input_ty = input.nested_type();
6767

0 commit comments

Comments
 (0)