summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-06-17 11:42:24 +0200
committerGitHub <noreply@github.com>2021-06-17 11:42:24 +0200
commitafd4cc702d8558ceca5ee2a46565a07b61742826 (patch)
tree08e53381a95d74ffbea3cd52e75bc1a9e6e1bd1c /editor
parentaf3091d2914ca1c95311bf7a7d6944dafba71643 (diff)
parentaa2215e6810f9d2f50552a1de7a688e3ac13a4ae (diff)
Merge pull request #49661 from akien-mga/main-fallback-to-projectmanager
Main: Fixup bogus fallback to project manager with more bolognese
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_paths.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/editor/editor_paths.cpp b/editor/editor_paths.cpp
index 323707ec6c..c9817190dd 100644
--- a/editor/editor_paths.cpp
+++ b/editor/editor_paths.cpp
@@ -186,7 +186,7 @@ EditorPaths::EditorPaths() {
// Validate or create project-specific editor data dir (`res://.godot`),
// including shader cache subdir.
- if (Main::is_project_manager()) {
+ if (Main::is_project_manager() || Main::is_cmdline_tool()) {
// Nothing to create, use shared editor data dir for shader cache.
Engine::get_singleton()->set_shader_cache_path(data_dir);
} else {
@@ -209,6 +209,4 @@ EditorPaths::EditorPaths() {
dir_res->make_dir(ProjectSettings::IMPORTED_FILES_PATH);
}
}
-
- print_line("paths valid: " + itos((int)paths_valid));
}