File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change 11//! Custom Bevy ECS bundle for shapes.
2- #![ expect( deprecated) ]
32
43use bevy:: prelude:: * ;
54use lyon_algorithms:: path:: Builder ;
@@ -11,30 +10,6 @@ use crate::{
1110 plugin:: COLOR_MATERIAL_HANDLE ,
1211} ;
1312
14- /// A Bevy `Bundle` to represent a shape.
15- #[ deprecated( since = "0.14.0" , note = "please use the `Shape` component instead." ) ]
16- #[ allow( missing_docs) ]
17- #[ derive( Bundle , Clone ) ]
18- pub struct ShapeBundle {
19- pub path : Shape ,
20- pub mesh : Mesh2d ,
21- pub material : MeshMaterial2d < ColorMaterial > ,
22- pub transform : Transform ,
23- pub visibility : Visibility ,
24- }
25-
26- impl Default for ShapeBundle {
27- fn default ( ) -> Self {
28- Self {
29- path : default ( ) ,
30- mesh : default ( ) ,
31- material : MeshMaterial2d ( COLOR_MATERIAL_HANDLE ) ,
32- transform : default ( ) ,
33- visibility : default ( ) ,
34- }
35- }
36- }
37-
3813/// `Component` describing a geometric shape.
3914///
4015/// It can be constructed using `ShapeBuilder`.
You can’t perform that action at this time.
0 commit comments