Reflect derived traits on all components and resources: bevy_gizmos (#15217)

Solves https://github.com/bevyengine/bevy/issues/15187 for bevy_gizmos
This commit is contained in:
Blazepaws 2024-09-15 16:41:49 +02:00 committed by GitHub
parent 2ea8d35900
commit 379696a468
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -64,7 +64,7 @@ pub struct AabbGizmoConfigGroup {
/// Add this [`Component`] to an entity to draw its [`Aabb`] component.
#[derive(Component, Reflect, Default, Debug)]
#[reflect(Component, Default)]
#[reflect(Component, Default, Debug)]
pub struct ShowAabbGizmo {
/// The color of the box.
///

View file

@ -200,7 +200,7 @@ impl Default for LightGizmoConfigGroup {
/// Add this [`Component`] to an entity to draw any of its lights components
/// ([`PointLight`], [`SpotLight`] and [`DirectionalLight`]).
#[derive(Component, Reflect, Default, Debug)]
#[reflect(Component, Default)]
#[reflect(Component, Default, Debug)]
pub struct ShowLightGizmo {
/// Default color strategy for this light gizmo. if [`None`], use the one provided by [`LightGizmoConfigGroup`].
///