From d8b60e079960e474cecc357ab008e20e82c2d372 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Lescaudey=20de=20Maneville?= Date: Mon, 5 Feb 2024 08:46:25 +0100 Subject: [PATCH] Update crates/bevy_sprite/src/texture_slice/slicer.rs --- crates/bevy_sprite/src/texture_slice/slicer.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/crates/bevy_sprite/src/texture_slice/slicer.rs b/crates/bevy_sprite/src/texture_slice/slicer.rs index a4d09e02f5e307..acec56563b1368 100644 --- a/crates/bevy_sprite/src/texture_slice/slicer.rs +++ b/crates/bevy_sprite/src/texture_slice/slicer.rs @@ -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) -> Vec { let render_size = render_size.unwrap_or_else(|| rect.size());