Skip to content

Commit

Permalink
Fix Quad deprecation message mentioning a type that doesn't exist (b…
Browse files Browse the repository at this point in the history
…evyengine#11798)

# Objective

The deprecation message of `bevy::render::mesh::shape::Quad` says that
you should use `bevy_math`'s `Quad` instead. But it doesn't exist.

## Solution

Mention the correct primitive: `Rectangle`
  • Loading branch information
doonv authored Feb 9, 2024
1 parent e0c296e commit f84672b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_render/src/mesh/shape/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ impl From<Box> for Mesh {
/// A rectangle on the `XY` plane centered at the origin.
#[deprecated(
since = "0.13.0",
note = "please use the `Quad` primitive in `bevy_math` instead"
note = "please use the `Rectangle` primitive in `bevy_math` instead"
)]
#[derive(Debug, Copy, Clone)]
pub struct Quad {
Expand Down

0 comments on commit f84672b

Please sign in to comment.