We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cd2fe96 + ac09e1c commit f616c8eCopy full SHA for f616c8e
1 file changed
app/content/ui/components/slider/slider.gd
@@ -20,12 +20,13 @@ class_name Slider3D
20
21
@export var value: float = 0.2:
22
set(new_value):
23
+ var old_value = value
24
value = roundi(clamp(new_value, min, max) / step) * step
25
26
if !is_inside_tree(): return
27
28
label.text = str(value) + " " + label_unit
- if new_value != value: on_value_changed.emit(value)
29
+ if value != old_value: on_value_changed.emit(value)
30
_update_slider()
31
32
@export var step: float = 0.01
0 commit comments