|
@@ -2374,7 +2374,7 @@ void Viewport::_gui_hide_control(Control *p_control) {
|
|
|
if (gui.key_focus == p_control) {
|
|
|
gui_release_focus();
|
|
|
}
|
|
|
- if (gui.mouse_over == p_control || gui.mouse_over_hierarchy.find(p_control) >= 0) {
|
|
|
+ if (gui.mouse_over == p_control || gui.mouse_over_hierarchy.has(p_control)) {
|
|
|
_drop_mouse_over(p_control->get_parent_control());
|
|
|
}
|
|
|
if (gui.drag_mouse_over == p_control) {
|
|
@@ -2394,7 +2394,7 @@ void Viewport::_gui_remove_control(Control *p_control) {
|
|
|
if (gui.key_focus == p_control) {
|
|
|
gui.key_focus = nullptr;
|
|
|
}
|
|
|
- if (gui.mouse_over == p_control || gui.mouse_over_hierarchy.find(p_control) >= 0) {
|
|
|
+ if (gui.mouse_over == p_control || gui.mouse_over_hierarchy.has(p_control)) {
|
|
|
_drop_mouse_over(p_control->get_parent_control());
|
|
|
}
|
|
|
if (gui.drag_mouse_over == p_control) {
|