Skip to content

Commit

Permalink
Attempt 5
Browse files Browse the repository at this point in the history
  • Loading branch information
doonv committed Nov 6, 2023
1 parent 404b260 commit 1d1b133
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/prelude.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
//! `use bevy_smooth_pixel_camera::prelude::*;` to import the [`PixelCamera`] and [`PixelCameraPlugin`].
pub use super::{PixelCameraPlugin, components::PixelCamera};
pub use super::{components::PixelCamera, PixelCameraPlugin};
8 changes: 7 additions & 1 deletion src/systems.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,13 @@ pub fn update_viewport_size(
return;
};

for (PixelCamera { scaling, smoothing, .. }, mut camera) in query.iter_mut() {
for (
PixelCamera {
scaling, smoothing, ..
},
mut camera,
) in query.iter_mut()
{
if let RenderTarget::Image(image_handle) = &mut camera.target {
// TODO: Remove the `.id()` part once https://github.com/bevyengine/bevy/pull/10372 gets merged
let image = images.get_mut(image_handle.id());
Expand Down

0 comments on commit 1d1b133

Please sign in to comment.