summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-08-10 19:22:22 +0200
committerGitHub <noreply@github.com>2020-08-10 19:22:22 +0200
commitcb0009fcd00e583d027b3b9b4573f63b2aab880b (patch)
tree02c615ae3049ed811f3b452908049dce635595a4
parentd6c9dc044217e1b184ea620f6354933e189db90b (diff)
parentf997004ee8ba2d64a44043a78eeb0d3e42408e9c (diff)
Merge pull request #41163 from raulsntos/default-env-formatting
Create default_env.tres with the same format used to save it
-rw-r--r--editor/project_manager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp
index a68742a985..35311b32eb 100644
--- a/editor/project_manager.cpp
+++ b/editor/project_manager.cpp
@@ -475,10 +475,12 @@ private:
set_message(TTR("Couldn't create project.godot in project path."), MESSAGE_ERROR);
} else {
f->store_line("[gd_resource type=\"Environment\" load_steps=2 format=2]");
+ f->store_line("");
f->store_line("[sub_resource type=\"Sky\" id=1]");
+ f->store_line("");
f->store_line("[resource]");
f->store_line("background_mode = 2");
- f->store_line("background_sky = SubResource( 1 )");
+ f->store_line("sky = SubResource( 1 )");
memdelete(f);
}
}