diff --git a/crates/bevy_asset/src/lib.rs b/crates/bevy_asset/src/lib.rs index a8cdc77674..14dc7ddcf4 100644 --- a/crates/bevy_asset/src/lib.rs +++ b/crates/bevy_asset/src/lib.rs @@ -86,10 +86,10 @@ impl Default for AssetPlugin { } impl AssetPlugin { - const DEFAULT_FILE_SOURCE: &str = "assets"; + const DEFAULT_FILE_SOURCE: &'static str = "assets"; /// NOTE: this is in the Default sub-folder to make this forward compatible with "import profiles" /// and to allow us to put the "processor transaction log" at `imported_assets/log` - const DEFAULT_FILE_DESTINATION: &str = "imported_assets/Default"; + const DEFAULT_FILE_DESTINATION: &'static str = "imported_assets/Default"; /// Returns the default [`AssetPlugin::Processed`] configuration pub fn processed() -> Self { diff --git a/crates/bevy_pbr/src/light.rs b/crates/bevy_pbr/src/light.rs index 09b26d8c6e..e52f3fe806 100644 --- a/crates/bevy_pbr/src/light.rs +++ b/crates/bevy_pbr/src/light.rs @@ -44,6 +44,7 @@ use crate::{ #[reflect(Component, Default)] pub struct PointLight { pub color: Color, + /// Luminous power in lumens pub intensity: f32, pub range: f32, pub radius: f32, @@ -59,7 +60,6 @@ impl Default for PointLight { fn default() -> Self { PointLight { color: Color::rgb(1.0, 1.0, 1.0), - /// Luminous power in lumens intensity: 800.0, // Roughly a 60W non-halogen incandescent bulb range: 20.0, radius: 0.0, @@ -95,6 +95,7 @@ impl Default for PointLightShadowMap { #[reflect(Component, Default)] pub struct SpotLight { pub color: Color, + /// Luminous power in lumens pub intensity: f32, pub range: f32, pub radius: f32, @@ -127,7 +128,6 @@ impl Default for SpotLight { // a quarter arc attenuating from the center Self { color: Color::rgb(1.0, 1.0, 1.0), - /// Luminous power in lumens intensity: 800.0, // Roughly a 60W non-halogen incandescent bulb range: 20.0, radius: 0.0,