Fix various editor easing property issues

This commit is contained in:
Jayden Sipe 2024-10-02 20:12:58 -04:00
parent 2e14492879
commit eaa61d24e9

View file

@ -1516,7 +1516,6 @@ void EditorPropertyEasing::_drag_easing(const Ref<InputEvent> &p_ev) {
val = CLAMP(val, -1'000'000, 1'000'000);
emit_changed(get_edited_property(), val);
easing_draw->queue_redraw();
}
}
@ -1568,6 +1567,9 @@ void EditorPropertyEasing::_draw_easing() {
}
void EditorPropertyEasing::update_property() {
float val = get_edited_property_value();
spin->set_value_no_signal(val);
easing_draw->queue_redraw();
}
@ -1575,7 +1577,6 @@ void EditorPropertyEasing::_set_preset(int p_preset) {
static const float preset_value[EASING_MAX] = { 0.0, 1.0, 2.0, 0.5, -2.0, -0.5 };
emit_changed(get_edited_property(), preset_value[p_preset]);
easing_draw->queue_redraw();
}
void EditorPropertyEasing::_setup_spin() {