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 417ce31 + a54b8b4 commit c95a2e3Copy full SHA for c95a2e3
editor/gui/editor_spin_slider.cpp
@@ -51,7 +51,9 @@ String EditorSpinSlider::get_tooltip(const Point2 &p_pos) const {
51
}
52
53
String EditorSpinSlider::get_text_value() const {
54
- return TS->format_number(editing_integer ? itos(get_value()) : rtos(get_value()));
+ return TS->format_number(editing_integer
55
+ ? itos(get_value())
56
+ : String::num(get_value(), Math::range_step_decimals(get_step())));
57
58
59
void EditorSpinSlider::gui_input(const Ref<InputEvent> &p_event) {
0 commit comments