Fix editor remaining dimmed after certain actions

Fixes #30368
This commit is contained in:
Bojidar Marinov
2019-07-06 17:37:40 +03:00
parent 0b6b49a897
commit e222615e97
2 changed files with 15 additions and 7 deletions
+8
View File
@@ -48,6 +48,14 @@ void Popup::_notification(int p_what) {
update_configuration_warning();
}
if (p_what == NOTIFICATION_EXIT_TREE) {
if (popped_up) {
popped_up = false;
notification(NOTIFICATION_POPUP_HIDE);
emit_signal("popup_hide");
}
}
if (p_what == NOTIFICATION_ENTER_TREE) {
//small helper to make editing of these easier in editor
#ifdef TOOLS_ENABLED