From ae9f265c47f1a32f7e11218361626761d0d2db21 Mon Sep 17 00:00:00 2001 From: andriyDev Date: Wed, 3 Jan 2024 00:57:12 -0800 Subject: [PATCH 1/2] Fix requested repaints not causing Bevy to redraw. --- src/systems.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/systems.rs b/src/systems.rs index 80aa3bf65..94c71a674 100644 --- a/src/systems.rs +++ b/src/systems.rs @@ -458,7 +458,7 @@ pub fn process_output_system( #[cfg(not(windows))] set_icon(); - if viewport_output.is_empty() { + if ctx.has_requested_repaint() { event.send(RequestRedraw) } From 0201f8d15050182f0d5b9798b73ac0eedc2bad34 Mon Sep 17 00:00:00 2001 From: mvlabat Date: Sun, 7 Jan 2024 16:28:15 +0200 Subject: [PATCH 2/2] Fix the clippy warning about unused viewport_output --- src/systems.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/systems.rs b/src/systems.rs index 94c71a674..f34d711bd 100644 --- a/src/systems.rs +++ b/src/systems.rs @@ -428,7 +428,7 @@ pub fn process_output_system( shapes, textures_delta, pixels_per_point, - viewport_output, + viewport_output: _, } = full_output; let paint_jobs = ctx.tessellate(shapes, pixels_per_point);