Skip to content

Commit

Permalink
Update crates/bevy_sprite/src/texture_slice/slicer.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
ManevilleF committed Feb 5, 2024
1 parent 8ee001c commit d8b60e0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions crates/bevy_sprite/src/texture_slice/slicer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,6 @@ impl TextureSlicer {
///
/// * `rect` - The section of the texture to slice in 9 parts
/// * `render_size` - The optional draw size of the texture. If not set the `rect` size will be used.
///
/// # Panics
///
/// Panics if any border values are bigger than `rect` half extents
#[must_use]
pub fn compute_slices(&self, rect: Rect, render_size: Option<Vec2>) -> Vec<TextureSlice> {
let render_size = render_size.unwrap_or_else(|| rect.size());
Expand Down

0 comments on commit d8b60e0

Please sign in to comment.