Skip to content

Commit

Permalink
Fix requested repaints not causing Bevy to redraw. (#240)
Browse files Browse the repository at this point in the history
* Fix requested repaints not causing Bevy to redraw.

* Fix the clippy warning about unused viewport_output

---------

Co-authored-by: mvlabat <mvlabat@gmail.com>
  • Loading branch information
andriyDev and mvlabat authored Jan 7, 2024
1 parent eee3aae commit 26a4264
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/systems.rs
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,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);

Expand Down Expand Up @@ -459,7 +459,7 @@ pub fn process_output_system(
#[cfg(not(windows))]
set_icon();

if viewport_output.is_empty() {
if ctx.has_requested_repaint() {
event.send(RequestRedraw)
}

Expand Down

0 comments on commit 26a4264

Please sign in to comment.