Skip to content

Commit c4c8176

Browse files
authored
Update crates/bevy_sprite/src/texture_slice/slicer.rs
1 parent 1864d1b commit c4c8176

File tree

1 file changed

+0
-4
lines changed
  • crates/bevy_sprite/src/texture_slice

1 file changed

+0
-4
lines changed

crates/bevy_sprite/src/texture_slice/slicer.rs

-4
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,6 @@ impl TextureSlicer {
200200
///
201201
/// * `rect` - The section of the texture to slice in 9 parts
202202
/// * `render_size` - The optional draw size of the texture. If not set the `rect` size will be used.
203-
///
204-
/// # Panics
205-
///
206-
/// Panics if any border values are bigger than `rect` half extents
207203
#[must_use]
208204
pub fn compute_slices(&self, rect: Rect, render_size: Option<Vec2>) -> Vec<TextureSlice> {
209205
let render_size = render_size.unwrap_or_else(|| rect.size());

0 commit comments

Comments
 (0)