From a7bf6e24599fc3d7dc51699f916ba049758a2081 Mon Sep 17 00:00:00 2001 From: Keavon Chambers Date: Sat, 27 Jan 2024 16:58:15 -0800 Subject: [PATCH] Fix triple graph evaluation on Windows by removing hash-based ExecutionRequest dedupe --- editor/src/node_graph_executor.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/editor/src/node_graph_executor.rs b/editor/src/node_graph_executor.rs index 36b61922..96fd22fc 100644 --- a/editor/src/node_graph_executor.rs +++ b/editor/src/node_graph_executor.rs @@ -145,10 +145,7 @@ impl NodeRuntime { // TODO: Currently we still render the document after we submit the node graph execution request. // This should be avoided in the future. requests.reverse(); - requests.dedup_by_key(|x| match x { - NodeRuntimeMessage::ExecutionRequest(x) => Some(x.graph.current_hash()), - _ => None, - }); + requests.dedup_by(|a, b| matches!(a, NodeRuntimeMessage::ExecutionRequest(_)) && matches!(b, NodeRuntimeMessage::ExecutionRequest(_))); requests.reverse(); for request in requests { match request {