Skip to content

Commit

Permalink
Deprecate ShapeBundle and remove it from prelude
Browse files Browse the repository at this point in the history
  • Loading branch information
Nilirad committed Dec 9, 2024
1 parent 0dd36b3 commit d2dc33d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/entity.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
//! Custom Bevy ECS bundle for shapes.
#![expect(deprecated)]

use bevy::prelude::*;
use lyon_tessellation::{self as tess};

use crate::{geometry::Geometry, plugin::COLOR_MATERIAL_HANDLE};

/// A Bevy `Bundle` to represent a shape.
#[deprecated(since = "0.14.0", note = "please use the `Shape` component instead.")]
#[allow(missing_docs)]
#[derive(Bundle, Clone)]
pub struct ShapeBundle {
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub mod prelude {

pub use crate::{
draw::{Fill, Stroke},
entity::{Shape, ShapeBundle},
entity::Shape,
geometry::{Geometry, GeometryBuilder},
path::{PathBuilder, ShapePath},
plugin::ShapePlugin,
Expand Down

0 comments on commit d2dc33d

Please sign in to comment.