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:
parent
7447b0ab97
commit
c85ab89615
@ -201,8 +201,8 @@ impl Plugin for LightPlugin {
|
|||||||
pub type WithLight = Or<(With<PointLight>, With<SpotLight>, With<DirectionalLight>)>;
|
pub type WithLight = Or<(With<PointLight>, With<SpotLight>, With<DirectionalLight>)>;
|
||||||
|
|
||||||
/// Add this component to make a [`Mesh3d`] not cast shadows.
|
/// Add this component to make a [`Mesh3d`] not cast shadows.
|
||||||
#[derive(Debug, Component, Reflect, Default)]
|
#[derive(Debug, Component, Reflect, Default, Clone, PartialEq)]
|
||||||
#[reflect(Component, Default, Debug)]
|
#[reflect(Component, Default, Debug, Clone, PartialEq)]
|
||||||
pub struct NotShadowCaster;
|
pub struct NotShadowCaster;
|
||||||
/// Add this component to make a [`Mesh3d`] not receive shadows.
|
/// Add this component to make a [`Mesh3d`] not receive shadows.
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user