Fix EditorSpinSlider mouse reset position on tree exit

(cherry picked from commit 784b1adb18)
This commit is contained in:
Johannes Witt 2022-06-07 20:05:52 +02:00 committed by Rémi Verschelde
parent e629622598
commit 2570df7fd8

View file

@ -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;
}