Skip to content

Commit 9022289

Browse files
committed
make things clone
1 parent 0f64852 commit 9022289

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/bevy_mod_scripting_core/src/asset.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use bevy::{
1313
use crate::{prelude::ScriptError, script::ScriptId};
1414

1515
/// Represents a script loaded into memory as an asset
16-
#[derive(Asset, TypePath)]
16+
#[derive(Asset, TypePath, Clone)]
1717
pub struct ScriptAsset {
1818
pub content: Box<[u8]>,
1919
/// The virtual filesystem path of the asset, used to map to the script Id for asset backed scripts

crates/bevy_mod_scripting_core/src/script.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use crate::{asset::ScriptAsset, context::ContextId};
88

99
pub type ScriptId = Cow<'static, str>;
1010

11-
#[derive(bevy::ecs::component::Component, Reflect)]
11+
#[derive(bevy::ecs::component::Component, Reflect, Clone)]
1212
pub struct ScriptComponent(pub Vec<ScriptId>);
1313

1414
impl Deref for ScriptComponent {

0 commit comments

Comments
 (0)