18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-02 07:22:42 +01:00

feat(editor): no question of the terrain at the first L, it loads in the background and the photo doesn't wait for it

The first L in a new scenery with no tracks nor terrain asked in a window whether to load the terrain. Now nothing is asked:
where the scenery lies on the map the terrain model loads in the background around it, as the answer Load the terrain did, and
a line in the panel of the laying says "Terrain: loading..." with Without terrain, which stops it as that answer did; it goes
once the terrain is in. A scenery not placed on the map has Place it... there, to Terrain (F5). Whether a new scenery gets its
terrain by itself is a checkbox of the settings of the terrain loading, where the window had it. A download of the model that
failed is told there, and in the banner of the loading and the terrain panel, in plain words as the photo tells its own, not
as the code of WinHTTP (which stays in the log).

A tile of the photo no longer waits for the chunks of the terrain still to come under it: it lies flat at the height of the
ground found last (of the layer before any was) and goes onto the ground as it comes. The window and its strings are gone.
This commit is contained in:
maj00r
2026-11-24 00:07:02 +01:00
parent 8c257fb6ad
commit 344e5eff3c
12 changed files with 159 additions and 183 deletions
+1
View File
@@ -2601,6 +2601,7 @@ void editor_mode::render_lay_ui()
auto &tool{m_lay};
auto const state{lay_panel_state()};
render_lay_step(state);
render_nmt_offer_line();
if (state == lay_state::clicking || state == lay_state::extending)
{
render_lay_quality();