summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorHein-Pieter van Braam <hp@tmm.cx>2017-09-07 23:43:53 +0200
committerHein-Pieter van Braam <hp@tmm.cx>2017-09-10 23:59:22 +0200
commit390a2025fedd431acb98db9e46faa7bbb3ef93ae (patch)
tree44d97b846021ddcd31b0dc06de3b4221b32c6ae9 /editor
parent5f39f3a2dfba500b6c9cd8f87b0dd35949043822 (diff)
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
Diffstat (limited to 'editor')
-rw-r--r--editor/project_manager.cpp2
1 files changed, 1 insertions, 1 deletions
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) {