mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-05 06:22:04 +00:00
Merge pull request #10319 from neikeq/pr-engine-editor-hint
Adds Engine::is_editor_hint() method
This commit is contained in:
@@ -227,11 +227,11 @@ void WindowDialog::_notification(int p_what) {
|
||||
} break;
|
||||
#ifdef TOOLS_ENABLED
|
||||
case NOTIFICATION_POST_POPUP: {
|
||||
if (get_tree() && get_tree()->is_editor_hint() && EditorNode::get_singleton())
|
||||
if (get_tree() && Engine::get_singleton()->is_editor_hint() && EditorNode::get_singleton())
|
||||
EditorNode::get_singleton()->dim_editor(true);
|
||||
} break;
|
||||
case NOTIFICATION_POPUP_HIDE: {
|
||||
if (get_tree() && get_tree()->is_editor_hint() && EditorNode::get_singleton())
|
||||
if (get_tree() && Engine::get_singleton()->is_editor_hint() && EditorNode::get_singleton())
|
||||
EditorNode::get_singleton()->dim_editor(false);
|
||||
} break;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user