Skip to content

Commit

Permalink
Merge pull request #85284 from Sauermann/fix-enter-hide
Browse files Browse the repository at this point in the history
Fix crash when hiding a Control during mouse-entering
  • Loading branch information
akien-mga committed Nov 23, 2023
2 parents 4247244 + 3de9afc commit 066e7d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scene/main/viewport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3207,7 +3207,9 @@ void Viewport::_update_mouse_over(Vector2 p_pos) {
}

// Send Mouse Enter Self notification.
gui.mouse_over->notification(Control::NOTIFICATION_MOUSE_ENTER_SELF);
if (gui.mouse_over) {
gui.mouse_over->notification(Control::NOTIFICATION_MOUSE_ENTER_SELF);
}

notify_embedded_viewports = true;
}
Expand Down

0 comments on commit 066e7d4

Please sign in to comment.