Merge pull request #59099 from RandomShaper/mouse_drop_on_disable
This commit is contained in:
commit
e4b9406313
|
@ -2782,6 +2782,14 @@ Vector2 Viewport::get_camera_rect_size() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Viewport::set_disable_input(bool p_disable) {
|
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;
|
disable_input = p_disable;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue