Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - Add sprite atlases into the new renderer. #2560

Closed
wants to merge 8 commits into from
Prev Previous commit
Next Next commit
Don't clone rect.
  • Loading branch information
StarArawn committed Jul 28, 2021
commit 0c2b128daaaab6524d9f98c745f3972840e3796e
2 changes: 1 addition & 1 deletion pipelined/bevy_sprite2/src/render/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ pub fn extract_atlases(
extracted_sprites.push(ExtractedSprite {
atlas_size: Some(texture_atlas.size),
transform: transform.compute_matrix(),
rect: rect.clone(),
rect,
handle: texture_atlas.texture.clone_weak(),
});
}
Expand Down