From 390a2025fedd431acb98db9e46faa7bbb3ef93ae Mon Sep 17 00:00:00 2001 From: Hein-Pieter van Braam Date: Thu, 7 Sep 2017 23:43:53 +0200 Subject: [PATCH] Don't set editor_hint true for project manager Due to this setting several callbacks get initialized but never used. For instance void discoverer_callback(). This callback only initializes the GDNativeSingletonDiscover *discoverer when called. This doesn't happen in project manager and this in turn causes a call to memdelete(NULL) which is invalid. This also seems to speed up startup a little. This fixes #11043 and fixes #10992 --- editor/project_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp index 323a36154e..02d8286ca4 100644 --- a/editor/project_manager.cpp +++ b/editor/project_manager.cpp @@ -465,7 +465,7 @@ void ProjectManager::_notification(int p_what) { if (p_what == NOTIFICATION_ENTER_TREE) { - Engine::get_singleton()->set_editor_hint(true); + Engine::get_singleton()->set_editor_hint(false); } else if (p_what == NOTIFICATION_VISIBILITY_CHANGED) {