Fix EditorSpinSlider mouse reset position on tree exit

This commit is contained in:
Johannes Witt 2022-06-07 20:05:52 +02:00
parent 12edb2ce58
commit 784b1adb18
No known key found for this signature in database
GPG key ID: B988B760383F3A91

View file

@ -448,6 +448,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(grabbing_spinner_mouse_pos);
grabbing_spinner = false;
grabbing_spinner_attempt = false;
}