From 6348dfa948783fd570f494246c4aa0dc602e6159 Mon Sep 17 00:00:00 2001 From: Michael Alexsander Date: Sat, 2 Nov 2019 20:25:26 -0300 Subject: Make the editor dimming even more smarter --- scene/gui/dialogs.cpp | 4 ++-- 1 file 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 } -- cgit v1.2.3