Skip to content

Commit ee586be

Browse files
authored
Fix exporting an image failing because it is ignored while playing an animation (#3151)
Fix export not working while playing an animation
1 parent a1e0575 commit ee586be

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

editor/src/node_graph_executor/runtime.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,14 @@ impl NodeRuntime {
153153
for request in self.receiver.try_iter() {
154154
match request {
155155
GraphRuntimeRequest::GraphUpdate(_) => graph = Some(request),
156-
GraphRuntimeRequest::ExecutionRequest(_) => execution = Some(request),
156+
GraphRuntimeRequest::ExecutionRequest(ref execution_request) => {
157+
let for_export = execution_request.render_config.for_export;
158+
execution = Some(request);
159+
// If we get an export request we always execute it immedeatly otherwise it could get deduplicated
160+
if for_export {
161+
break;
162+
}
163+
}
157164
GraphRuntimeRequest::FontCacheUpdate(_) => font = Some(request),
158165
GraphRuntimeRequest::EditorPreferencesUpdate(_) => preferences = Some(request),
159166
}

0 commit comments

Comments
 (0)