From ee586be3815096b2e3dfed7923e2729332017ebf Mon Sep 17 00:00:00 2001 From: Dennis Kobert Date: Mon, 8 Sep 2025 11:32:07 +0200 Subject: [PATCH] Fix exporting an image failing because it is ignored while playing an animation (#3151) Fix export not working while playing an animation --- editor/src/node_graph_executor/runtime.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/editor/src/node_graph_executor/runtime.rs b/editor/src/node_graph_executor/runtime.rs index 217e5ad90..b89c5b2f2 100644 --- a/editor/src/node_graph_executor/runtime.rs +++ b/editor/src/node_graph_executor/runtime.rs @@ -153,7 +153,14 @@ impl NodeRuntime { for request in self.receiver.try_iter() { match request { GraphRuntimeRequest::GraphUpdate(_) => graph = Some(request), - GraphRuntimeRequest::ExecutionRequest(_) => execution = Some(request), + GraphRuntimeRequest::ExecutionRequest(ref execution_request) => { + let for_export = execution_request.render_config.for_export; + execution = Some(request); + // If we get an export request we always execute it immedeatly otherwise it could get deduplicated + if for_export { + break; + } + } GraphRuntimeRequest::FontCacheUpdate(_) => font = Some(request), GraphRuntimeRequest::EditorPreferencesUpdate(_) => preferences = Some(request), }