Create default_env.tres with the same format used to save it

This commit is contained in:
Raul Santos 2020-08-10 09:51:47 +02:00
parent f2149fe763
commit f997004ee8
No known key found for this signature in database
GPG key ID: B532473AE3A803E4

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