Merge pull request #33275 from YeldhamDev/big_brain_dimming

Make the editor dimming even more smarter
This commit is contained in:
Rémi Verschelde 2019-11-03 07:50:22 +01:00 committed by GitHub
commit a02d79191a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -246,8 +246,8 @@ void WindowDialog::_notification(int p_what) {
} break;
case NOTIFICATION_POPUP_HIDE: {
if (get_tree() && Engine::get_singleton()->is_editor_hint() && EditorNode::get_singleton())
EditorNode::get_singleton()->dim_editor(was_editor_dimmed);
if (get_tree() && Engine::get_singleton()->is_editor_hint() && EditorNode::get_singleton() && !was_editor_dimmed)
EditorNode::get_singleton()->dim_editor(false);
} break;
#endif
}