Skip to content

Commit

Permalink
Added Clone derive to ShapeBundle and Path. (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
NEON725 committed Aug 19, 2024
1 parent 22f4628 commit 6381dad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/entity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::{geometry::Geometry, plugin::COLOR_MATERIAL_HANDLE};

/// A Bevy `Bundle` to represent a shape.
#[allow(missing_docs)]
#[derive(Bundle)]
#[derive(Bundle, Clone)]
pub struct ShapeBundle {
pub path: Path,
pub mesh: Mesh2dHandle,
Expand All @@ -27,7 +27,7 @@ impl Default for ShapeBundle {
}

#[allow(missing_docs)]
#[derive(Component, Default)]
#[derive(Component, Default, Clone)]
pub struct Path(pub tess::path::Path);

impl Geometry for Path {
Expand Down

0 comments on commit 6381dad

Please sign in to comment.