From 88c0c08fb0cff65d564d77bb8810568805557535 Mon Sep 17 00:00:00 2001 From: Talin Date: Tue, 8 Jul 2025 10:27:17 -0700 Subject: [PATCH] Revert reflection for now. --- crates/bevy_core_widgets/Cargo.toml | 1 - crates/bevy_core_widgets/src/core_slider.rs | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/bevy_core_widgets/Cargo.toml b/crates/bevy_core_widgets/Cargo.toml index bcfdf5d34e..186b2ec820 100644 --- a/crates/bevy_core_widgets/Cargo.toml +++ b/crates/bevy_core_widgets/Cargo.toml @@ -18,7 +18,6 @@ bevy_input_focus = { path = "../bevy_input_focus", version = "0.17.0-dev" } bevy_log = { path = "../bevy_log", version = "0.17.0-dev" } bevy_math = { path = "../bevy_math", version = "0.17.0-dev" } bevy_picking = { path = "../bevy_picking", version = "0.17.0-dev" } -bevy_reflect = { path = "../bevy_reflect", version = "0.17.0-dev" } bevy_ui = { path = "../bevy_ui", version = "0.17.0-dev", features = [ "bevy_ui_picking_backend", ] } diff --git a/crates/bevy_core_widgets/src/core_slider.rs b/crates/bevy_core_widgets/src/core_slider.rs index 24eeaffe33..ba38f0de26 100644 --- a/crates/bevy_core_widgets/src/core_slider.rs +++ b/crates/bevy_core_widgets/src/core_slider.rs @@ -21,7 +21,6 @@ use bevy_input_focus::FocusedInput; use bevy_log::warn_once; use bevy_math::ops; use bevy_picking::events::{Drag, DragEnd, DragStart, Pointer, Press}; -use bevy_reflect::Reflect; use bevy_ui::{ComputedNode, ComputedNodeTarget, InteractionDisabled, UiGlobalTransform, UiScale}; use crate::{Callback, Notify}; @@ -180,7 +179,7 @@ impl Default for SliderRange { /// Defines the amount by which to increment or decrement the slider value when using keyboard /// shortcuts. Defaults to 1.0. -#[derive(Component, Debug, PartialEq, Clone, Reflect)] +#[derive(Component, Debug, PartialEq, Clone)] #[component(immutable)] pub struct SliderStep(pub f32); @@ -199,7 +198,7 @@ impl Default for SliderStep { /// The value in this component represents the number of decimal places of desired precision, so a /// value of 2 would round to the nearest 1/100th. A value of -3 would round to the nearest /// thousand. -#[derive(Component, Debug, Default, Clone, Copy, Reflect)] +#[derive(Component, Debug, Default, Clone, Copy)] pub struct SliderPrecision(pub i32); impl SliderPrecision {