Allow NotShadowCaster to be used with HierarchyPropagatePlugin. (#20120)

# Objective

Allow NotShadowCaster to be used with HierarchyPropagatePlugin.

## Solution

Implements Clone and PartialEq for NotShadowCaster.
This commit is contained in:
coolcatcoder 2025-07-15 05:55:12 +08:00 committed by GitHub
parent 7447b0ab97
commit c85ab89615
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -201,8 +201,8 @@ impl Plugin for LightPlugin {
pub type WithLight = Or<(With<PointLight>, With<SpotLight>, With<DirectionalLight>)>;
/// Add this component to make a [`Mesh3d`] not cast shadows.
#[derive(Debug, Component, Reflect, Default)]
#[reflect(Component, Default, Debug)]
#[derive(Debug, Component, Reflect, Default, Clone, PartialEq)]
#[reflect(Component, Default, Debug, Clone, PartialEq)]
pub struct NotShadowCaster;
/// Add this component to make a [`Mesh3d`] not receive shadows.
///