diff --git a/crates/bevy_render/src/spatial_bundle.rs b/crates/bevy_render/src/spatial_bundle.rs index 27dba5c215a77..d8e749cf0bfc2 100644 --- a/crates/bevy_render/src/spatial_bundle.rs +++ b/crates/bevy_render/src/spatial_bundle.rs @@ -15,7 +15,7 @@ use crate::view::{InheritedVisibility, ViewVisibility, Visibility}; /// to be rendered correctly. /// /// [`Component`]: bevy_ecs::component::Component -#[derive(Bundle, Debug, Default)] +#[derive(Bundle, Clone, Debug, Default)] pub struct SpatialBundle { /// The visibility of the entity. pub visibility: Visibility, diff --git a/crates/bevy_render/src/view/visibility/mod.rs b/crates/bevy_render/src/view/visibility/mod.rs index 8b2a98e7e7537..0bd224f4d4dd4 100644 --- a/crates/bevy_render/src/view/visibility/mod.rs +++ b/crates/bevy_render/src/view/visibility/mod.rs @@ -135,7 +135,7 @@ impl ViewVisibility { /// * To get the inherited visibility of an entity, you should get its [`InheritedVisibility`]. /// * For visibility hierarchies to work correctly, you must have both all of [`Visibility`], [`InheritedVisibility`], and [`ViewVisibility`]. /// * You may use the [`VisibilityBundle`] to guarantee this. -#[derive(Bundle, Debug, Default)] +#[derive(Bundle, Debug, Clone, Default)] pub struct VisibilityBundle { /// The visibility of the entity. pub visibility: Visibility,