From 6381dad30053aa5069de4d8cdde628fd9c9e74da Mon Sep 17 00:00:00 2001 From: NEON725 Date: Mon, 19 Aug 2024 03:09:56 -0500 Subject: [PATCH] Added Clone derive to ShapeBundle and Path. (#252) --- src/entity.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entity.rs b/src/entity.rs index fce3a23..244a230 100644 --- a/src/entity.rs +++ b/src/entity.rs @@ -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, @@ -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 {