Skip to content

Commit

Permalink
Merge pull request #59099 from RandomShaper/mouse_drop_on_disable
Browse files Browse the repository at this point in the history
  • Loading branch information
akien-mga authored Mar 14, 2022
2 parents 964908d + d083fb2 commit e4b9406
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scene/main/viewport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2782,6 +2782,14 @@ Vector2 Viewport::get_camera_rect_size() const {
}

void Viewport::set_disable_input(bool p_disable) {
if (p_disable == disable_input) {
return;
}
if (p_disable) {
_drop_mouse_focus();
_drop_mouse_over();
_gui_cancel_tooltip();
}
disable_input = p_disable;
}

Expand Down

0 comments on commit e4b9406

Please sign in to comment.