From ad615dcec4a8b6e0fa29e85306af2e8e3ddc9935 Mon Sep 17 00:00:00 2001 From: Christopher Biscardi Date: Fri, 7 Jun 2024 00:46:45 -0700 Subject: [PATCH] into_linear_f32 -> color.0.linear().to_f32_array(), [12163](https://github.com/bevyengine/bevy/pull/12163) bevy_color was created and Color handling has changed. Specifically Color::as_linear_rgba_f32 has been removed. LinearRgba is now its own type that can be accessed via [`linear()`](https://docs.rs/bevy/0.14.0-rc.2/bevy/color/enum.Color.html#method.linear) and then converted. --- src/render/extract.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render/extract.rs b/src/render/extract.rs index 24166d47..f87d1828 100644 --- a/src/render/extract.rs +++ b/src/render/extract.rs @@ -282,7 +282,7 @@ pub fn extract( visible: visible.0, position, texture, - color: color.0.as_linear_rgba_f32(), + color: color.0.linear().to_f32_array(), }; let data = tilemap_query.get(tilemap_id.0).unwrap();