1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

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

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