mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-27 02:18:11 +08:00
Fix exporting an image failing because it is ignored while playing an animation (#3151)
Fix export not working while playing an animation
This commit is contained in:
@@ -153,7 +153,14 @@ impl NodeRuntime {
|
|||||||
for request in self.receiver.try_iter() {
|
for request in self.receiver.try_iter() {
|
||||||
match request {
|
match request {
|
||||||
GraphRuntimeRequest::GraphUpdate(_) => graph = Some(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::FontCacheUpdate(_) => font = Some(request),
|
||||||
GraphRuntimeRequest::EditorPreferencesUpdate(_) => preferences = Some(request),
|
GraphRuntimeRequest::EditorPreferencesUpdate(_) => preferences = Some(request),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user