diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-11-03 07:50:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-03 07:50:22 +0100 |
commit | a02d79191a13b9194a51e1a9c3f250d14e28b2c8 (patch) | |
tree | 8f3f53c7c6ec00ac0c6b26b43525565fd81df21b | |
parent | 60182d6b5aed2d672111f4a2b8e776d21a7a009c (diff) | |
parent | 6348dfa948783fd570f494246c4aa0dc602e6159 (diff) |
Merge pull request #33275 from YeldhamDev/big_brain_dimming
Make the editor dimming even more smarter
-rw-r--r-- | scene/gui/dialogs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/dialogs.cpp b/scene/gui/dialogs.cpp index 19bac5e5ac..a1b584bad6 100644 --- a/scene/gui/dialogs.cpp +++ b/scene/gui/dialogs.cpp @@ -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 } |