From 2570df7fd8ada51df684fc061ec75e0b7952f10e Mon Sep 17 00:00:00 2001 From: Johannes Witt Date: Tue, 7 Jun 2022 20:05:52 +0200 Subject: [PATCH] Fix `EditorSpinSlider` mouse reset position on tree exit (cherry picked from commit 784b1adb188f6003f01201d8cff3dab574c6beab) --- editor/editor_spin_slider.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/editor_spin_slider.cpp b/editor/editor_spin_slider.cpp index 5193c9604d7..87c0de434e7 100644 --- a/editor/editor_spin_slider.cpp +++ b/editor/editor_spin_slider.cpp @@ -398,6 +398,7 @@ void EditorSpinSlider::_notification(int p_what) { if (grabbing_spinner) { grabber->hide(); Input::get_singleton()->set_mouse_mode(Input::MOUSE_MODE_VISIBLE); + Input::get_singleton()->warp_mouse_position(grabbing_spinner_mouse_pos); grabbing_spinner = false; grabbing_spinner_attempt = false; }