Skip to content

Commit 4d77490

Browse files
authored
add Clone and PartialEq traits to NoFrustumCulling marker component (#22615)
# Objective fixes not being able to use the HierarchyPropagatePlugin with the NoFrustumCulling component by satisfying the trait bounds for Clone and PartialEq ## Solution - add Clone and PartialEq trait to NoFrustumCulling struct ## Testing i did not test this
1 parent 8024168 commit 4d77490

File tree

1 file changed

+1
-1
lines changed
  • crates/bevy_camera/src/visibility

1 file changed

+1
-1
lines changed

crates/bevy_camera/src/visibility/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ impl<'a> SetViewVisibility for Mut<'a, ViewVisibility> {
261261
/// - when a [`Mesh`] is updated but its [`Aabb`] is not, which might happen with animations,
262262
/// - when using some light effects, like wanting a [`Mesh`] out of the [`Frustum`]
263263
/// to appear in the reflection of a [`Mesh`] within.
264-
#[derive(Debug, Component, Default, Reflect)]
264+
#[derive(Debug, Component, Default, Reflect, Clone, PartialEq)]
265265
#[reflect(Component, Default, Debug)]
266266
pub struct NoFrustumCulling;
267267

0 commit comments

Comments
 (0)