Merge pull request #41163 from raulsntos/default-env-formatting

Create default_env.tres with the same format used to save it
This commit is contained in:
Rémi Verschelde 2020-08-10 19:22:22 +02:00 committed by GitHub
commit cb0009fcd0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}
}