mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Fix set_default_cursor_shape always sending motion event
This commit is contained in:
parent
639127de09
commit
508761e0cd
2 changed files with 5 additions and 0 deletions
|
@ -629,6 +629,10 @@ Input::CursorShape InputDefault::get_default_cursor_shape() const {
|
|||
}
|
||||
|
||||
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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue