Skip to content

Commit

Permalink
reflect(Debug)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobhellermann committed Sep 14, 2022
1 parent 8f2b8cd commit 99f6daa
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/bevy_pbr/src/alpha.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use bevy_reflect::{FromReflect, Reflect};
// FIXME: This should probably be part of bevy_render2!
/// Alpha mode
#[derive(Component, Reflect, FromReflect, Debug, Default, Copy, Clone, PartialEq)]
#[reflect(Component, Default)]
#[reflect(Component, Default, Debug)]
pub enum AlphaMode {
#[default]
Opaque,
Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_pbr/src/pbr_material.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use bevy_render::{
#[uuid = "7494888b-c082-457b-aacf-517228cc0c22"]
#[bind_group_data(StandardMaterialKey)]
#[uniform(0, StandardMaterialUniform)]
#[reflect(Default)]
#[reflect(Default, Debug)]
pub struct StandardMaterial {
/// Doubles as diffuse albedo for non-metallic, specular for metallic and a mix for everything
/// in between. If used together with a base_color_texture, this is factored into the final
Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_sprite/src/mesh2d/color_material.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl Plugin for ColorMaterialPlugin {

/// A [2d material](Material2d) that renders [2d meshes](crate::Mesh2dHandle) with a texture tinted by a uniform color
#[derive(AsBindGroup, Reflect, FromReflect, Debug, Clone, TypeUuid)]
#[reflect(Default)]
#[reflect(Default, Debug)]
#[uuid = "e228a544-e3ca-4e1e-bb9d-4d8bc1ad8c19"]
#[uniform(0, ColorMaterialUniform)]
pub struct ColorMaterial {
Expand Down
1 change: 1 addition & 0 deletions crates/bevy_sprite/src/texture_atlas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use bevy_utils::HashMap;
/// [Example usage loading sprite sheet.](https:/bevyengine/bevy/blob/latest/examples/2d/texture_atlas.rs)
#[derive(Reflect, FromReflect, Debug, Clone, TypeUuid)]
#[uuid = "7233c597-ccfa-411f-bd59-9af349432ada"]
#[reflect(Debug)]
pub struct TextureAtlas {
/// The handle to the texture in which the sprites are stored
pub texture: Handle<Image>,
Expand Down

0 comments on commit 99f6daa

Please sign in to comment.