Hiding a control now fires NOTIFICATION_FOCUS_EXIT.

It always removed the focus from the control, but this happened without firing the relevant notification.
This commit is contained in:
PJB3005 2017-12-26 20:58:53 +01:00
parent 8b0ad17b76
commit 7f0a1c1780

View file

@ -2302,7 +2302,7 @@ void Viewport::_gui_hid_control(Control *p_control) {
*/
if (gui.key_focus == p_control)
gui.key_focus = NULL;
_gui_remove_focus();
if (gui.mouse_over == p_control)
gui.mouse_over = NULL;
if (gui.tooltip == p_control)