Fix EditorSpinSlider mouse reset position on tree exit

(cherry picked from commit 784b1adb188f6003f01201d8cff3dab574c6beab)
This commit is contained in:
Johannes Witt 2022-06-07 20:05:52 +02:00 committed by Relintai
parent da8155f59b
commit eb1fa27364

View File

@ -420,6 +420,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;
}