From 8cea898f9cade4c3e9f555ab65fc132afdf4fe41 Mon Sep 17 00:00:00 2001 From: Piotr Siuszko Date: Mon, 23 Jun 2025 18:22:02 +0200 Subject: [PATCH] values bound fix --- crates/bevy_remote/src/schemas/reflect_info.rs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/crates/bevy_remote/src/schemas/reflect_info.rs b/crates/bevy_remote/src/schemas/reflect_info.rs index 445743116f..54f65b1b6d 100644 --- a/crates/bevy_remote/src/schemas/reflect_info.rs +++ b/crates/bevy_remote/src/schemas/reflect_info.rs @@ -201,11 +201,10 @@ impl From for MinMaxValues { } else if value.eq(&TypeId::of::()) { min = Some(BoundValue::Inclusive(0.into())); max = Some(BoundValue::Inclusive(u32::MAX.into())); - } else if value.eq(&TypeId::of::()) { - min = Some(BoundValue::Inclusive(0.into())); - } else if value.eq(&TypeId::of::()) { - min = Some(BoundValue::Inclusive(0.into())); - } else if value.eq(&TypeId::of::()) { + } else if value.eq(&TypeId::of::()) + || value.eq(&TypeId::of::()) + || value.eq(&TypeId::of::()) + { min = Some(BoundValue::Inclusive(0.into())); } else if value.eq(&TypeId::of::()) { min = Some(BoundValue::Inclusive(i8::MIN.into())); @@ -712,8 +711,6 @@ pub trait SchemaInfoReflect { self.min_max_from_attribute_for_type::() } else if t.eq(&TypeId::of::()) { self.min_max_from_attribute_for_type::() - } else if t.eq(&TypeId::of::()) { - self.min_max_from_attribute_for_type::() } else if t.eq(&TypeId::of::()) { self.min_max_from_attribute_for_type::() } else if t.eq(&TypeId::of::()) {