Skip to content

Commit 705e1be

Browse files
committed
Remove Sprite component from ShapeBundle
1 parent 0d355b5 commit 705e1be

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/entity.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use crate::{render::SHAPE_PIPELINE_HANDLE, utils::TessellationMode};
44
use bevy::{
55
asset::Handle,
66
ecs::bundle::Bundle,
7-
math::Vec2,
87
reflect::TypeUuid,
98
render::{
109
color::Color,
@@ -14,7 +13,7 @@ use bevy::{
1413
render_graph::base::MainPass,
1514
renderer::RenderResources,
1615
},
17-
sprite::{Sprite, QUAD_HANDLE},
16+
sprite::QUAD_HANDLE,
1817
transform::components::{GlobalTransform, Transform},
1918
};
2019
use lyon_tessellation::{path::Path, FillOptions};
@@ -25,7 +24,6 @@ use lyon_tessellation::{path::Path, FillOptions};
2524
pub struct ShapeBundle {
2625
pub path: Path,
2726
pub mode: TessellationMode,
28-
pub sprite: Sprite,
2927
pub mesh: Handle<Mesh>,
3028
pub material: Handle<ShapeMaterial>,
3129
pub main_pass: MainPass,
@@ -51,10 +49,6 @@ impl Default for ShapeBundle {
5149
},
5250
main_pass: MainPass,
5351
draw: Draw::default(),
54-
sprite: Sprite {
55-
size: Vec2::new(1.0, 1.0),
56-
..Sprite::default()
57-
},
5852
material: Handle::<ShapeMaterial>::default(),
5953
transform: Transform::default(),
6054
global_transform: GlobalTransform::default(),

0 commit comments

Comments
 (0)