We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1864d1b commit c4c8176Copy full SHA for c4c8176
crates/bevy_sprite/src/texture_slice/slicer.rs
@@ -200,10 +200,6 @@ impl TextureSlicer {
200
///
201
/// * `rect` - The section of the texture to slice in 9 parts
202
/// * `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
207
#[must_use]
208
pub fn compute_slices(&self, rect: Rect, render_size: Option<Vec2>) -> Vec<TextureSlice> {
209
let render_size = render_size.unwrap_or_else(|| rect.size());
0 commit comments