Merge pull request #85284 from Sauermann/fix-enter-hide

Fix crash when hiding a Control during mouse-entering
This commit is contained in:
Rémi Verschelde
2023-11-24 00:01:15 +01:00

View File

@ -3207,7 +3207,9 @@ void Viewport::_update_mouse_over(Vector2 p_pos) {
} }
// Send Mouse Enter Self notification. // Send Mouse Enter Self notification.
if (gui.mouse_over) {
gui.mouse_over->notification(Control::NOTIFICATION_MOUSE_ENTER_SELF); gui.mouse_over->notification(Control::NOTIFICATION_MOUSE_ENTER_SELF);
}
notify_embedded_viewports = true; notify_embedded_viewports = true;
} }