From ed9dc6d679eb9048e5fd0f551216c77c87b7fa2f Mon Sep 17 00:00:00 2001 From: kdecay Date: Fri, 18 Feb 2022 22:32:14 +0100 Subject: [PATCH] Change default color to white --- crates/bevy_sprite/src/mesh2d/color_material.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_sprite/src/mesh2d/color_material.rs b/crates/bevy_sprite/src/mesh2d/color_material.rs index eed38c3f14a1f..98592d9c35e44 100644 --- a/crates/bevy_sprite/src/mesh2d/color_material.rs +++ b/crates/bevy_sprite/src/mesh2d/color_material.rs @@ -57,7 +57,7 @@ pub struct ColorMaterial { impl Default for ColorMaterial { fn default() -> Self { ColorMaterial { - color: Color::rgb(1.0, 0.0, 1.0), + color: Color::WHITE, texture: None, } } @@ -76,7 +76,7 @@ impl From> for ColorMaterial { fn from(texture: Handle) -> Self { ColorMaterial { texture: Some(texture), - color: Color::WHITE, + ..Default::default() } } }