From ee3cc8ca86a40cbfdad1883f29f1c4be975b8ac8 Mon Sep 17 00:00:00 2001 From: Nicola Papale Date: Thu, 31 Aug 2023 14:55:17 +0200 Subject: [PATCH] Fix erronenous glam version (#9653) # Objective - Fix compilation issue with wrongly specified glam version - bevy uses `Vec2::INFINITY`, depends on `0.24` (equivalent to `0.24.0`) yet it was only introduced in version `0.24.1` Context: https://discord.com/channels/691052431525675048/692572690833473578/1146586570787397794 ## Solution - Bump glam version. --- benches/Cargo.toml | 2 +- crates/bevy_math/Cargo.toml | 2 +- crates/bevy_mikktspace/Cargo.toml | 2 +- crates/bevy_reflect/Cargo.toml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/benches/Cargo.toml b/benches/Cargo.toml index 5842072a4a..f060d83ebf 100644 --- a/benches/Cargo.toml +++ b/benches/Cargo.toml @@ -7,7 +7,7 @@ publish = false license = "MIT OR Apache-2.0" [dev-dependencies] -glam = "0.24" +glam = "0.24.1" rand = "0.8" rand_chacha = "0.3" criterion = { version = "0.3", features = ["html_reports"] } diff --git a/crates/bevy_math/Cargo.toml b/crates/bevy_math/Cargo.toml index ac74611a80..f627ec9e6d 100644 --- a/crates/bevy_math/Cargo.toml +++ b/crates/bevy_math/Cargo.toml @@ -9,7 +9,7 @@ license = "MIT OR Apache-2.0" keywords = ["bevy"] [dependencies] -glam = { version = "0.24", features = ["bytemuck"] } +glam = { version = "0.24.1", features = ["bytemuck"] } serde = { version = "1", features = ["derive"], optional = true } [features] diff --git a/crates/bevy_mikktspace/Cargo.toml b/crates/bevy_mikktspace/Cargo.toml index e5471e7bc3..8bd4afcd77 100644 --- a/crates/bevy_mikktspace/Cargo.toml +++ b/crates/bevy_mikktspace/Cargo.toml @@ -11,7 +11,7 @@ license = "Zlib AND (MIT OR Apache-2.0)" keywords = ["bevy", "3D", "graphics", "algorithm", "tangent"] [dependencies] -glam = "0.24" +glam = "0.24.1" [[example]] name = "generate" diff --git a/crates/bevy_reflect/Cargo.toml b/crates/bevy_reflect/Cargo.toml index 99c443a3cd..33b4ad6a1c 100644 --- a/crates/bevy_reflect/Cargo.toml +++ b/crates/bevy_reflect/Cargo.toml @@ -37,7 +37,7 @@ smallvec = { version = "1.6", features = [ "union", "const_generics", ], optional = true } -glam = { version = "0.24", features = ["serde"], optional = true } +glam = { version = "0.24.1", features = ["serde"], optional = true } smol_str = { version = "0.2.0", optional = true } [dev-dependencies]