1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-14 13:41:12 +00:00

Fix set_default_cursor_shape always sending motion event

(cherry picked from commit 508761e0cd)
This commit is contained in:
Guilherme Felipe
2019-07-29 13:23:30 -03:00
committed by Rémi Verschelde
parent e384d77194
commit 71a0722035
2 changed files with 6 additions and 1 deletions

View File

@@ -632,6 +632,10 @@ Input::CursorShape InputDefault::get_default_cursor_shape() {
}
void InputDefault::set_default_cursor_shape(CursorShape p_shape) {
if (default_shape == p_shape)
return;
default_shape = p_shape;
// The default shape is set in Viewport::_gui_input_event. To instantly
// see the shape in the viewport we need to trigger a mouse motion event.