Skip to content

Commit c85ab89

Browse files
authored
Allow NotShadowCaster to be used with HierarchyPropagatePlugin. (#20120)
# Objective Allow NotShadowCaster to be used with HierarchyPropagatePlugin. ## Solution Implements Clone and PartialEq for NotShadowCaster.
1 parent 7447b0a commit c85ab89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/bevy_light/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ impl Plugin for LightPlugin {
201201
pub type WithLight = Or<(With<PointLight>, With<SpotLight>, With<DirectionalLight>)>;
202202

203203
/// Add this component to make a [`Mesh3d`] not cast shadows.
204-
#[derive(Debug, Component, Reflect, Default)]
205-
#[reflect(Component, Default, Debug)]
204+
#[derive(Debug, Component, Reflect, Default, Clone, PartialEq)]
205+
#[reflect(Component, Default, Debug, Clone, PartialEq)]
206206
pub struct NotShadowCaster;
207207
/// Add this component to make a [`Mesh3d`] not receive shadows.
208208
///

0 commit comments

Comments
 (0)