Skip to content

Commit f84672b

Browse files
authored
Fix Quad deprecation message mentioning a type that doesn't exist (#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`
1 parent e0c296e commit f84672b

File tree

1 file changed

+1
-1
lines changed
  • crates/bevy_render/src/mesh/shape

1 file changed

+1
-1
lines changed

crates/bevy_render/src/mesh/shape/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ impl From<Box> for Mesh {
146146
/// A rectangle on the `XY` plane centered at the origin.
147147
#[deprecated(
148148
since = "0.13.0",
149-
note = "please use the `Quad` primitive in `bevy_math` instead"
149+
note = "please use the `Rectangle` primitive in `bevy_math` instead"
150150
)]
151151
#[derive(Debug, Copy, Clone)]
152152
pub struct Quad {

0 commit comments

Comments
 (0)