2
0
Fork 0

Make the editor dimming even more smarter

3.2
Michael Alexsander 2019-11-02 20:25:26 +07:00
parent 60182d6b5a
commit 6348dfa948
1 changed files with 2 additions and 2 deletions

@ -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
}