summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-02-21 11:14:34 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-02-21 11:14:34 +0100
commit6acc7f03edb95674cda86d0e71f5289c6881b778 (patch)
treeb2b64f5d15ebac0066ca0e83570ed137a563503b /editor
parent6cde3fac328e97e66b1c12d386deb25af395e215 (diff)
parentff42cb0d1e8dda98b7657fd5e3ed6be16f0d280e (diff)
Merge pull request #73595 from KoBeWi/missingno
Fix missing directories when exporting from cmd
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_paths.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_paths.cpp b/editor/editor_paths.cpp
index 36ebeb8c33..389c16fd66 100644
--- a/editor/editor_paths.cpp
+++ b/editor/editor_paths.cpp
@@ -218,7 +218,7 @@ EditorPaths::EditorPaths() {
// Validate or create project-specific editor data dir,
// including shader cache subdir.
- if (Engine::get_singleton()->is_project_manager_hint() || Main::is_cmdline_tool()) {
+ if (Engine::get_singleton()->is_project_manager_hint() || (Main::is_cmdline_tool() && !ProjectSettings::get_singleton()->is_project_loaded())) {
// Nothing to create, use shared editor data dir for shader cache.
Engine::get_singleton()->set_shader_cache_path(data_dir);
} else {