mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-02 05:49:13 +01:00
feat(editor): the terrain model loads from a clearer panel and follows the tracks edited
The panel gives the place on the map or typed, the area, one main button, a progress bar with Stop and a banner over the view while it loads. The terrain grown ahead of a track goes on at the height of the one beside it and skips the ground made by hand. The formations follow the tracks moved, laid and removed, in the same step of the history; a whole load is one step, the ground grown ahead none.
This commit is contained in:
@@ -3512,6 +3512,8 @@ void editor_track::retire(TTrack &Track)
|
||||
disconnect(Track);
|
||||
simulation::Region->erase_and_unregister(&Track);
|
||||
Track.m_editorremoved = true;
|
||||
if (s_observer != nullptr)
|
||||
s_observer->track_retired(Track);
|
||||
// the name is free for the path laid in its place, as the switches of a crossover laid again keep theirs
|
||||
simulation::Paths.rename(&Track, std::string{});
|
||||
for (auto *neighbour : adjoining)
|
||||
@@ -3527,8 +3529,6 @@ void editor_track::retire(TTrack &Track)
|
||||
for (auto *crossing : crossings)
|
||||
if (crossing != &Track && false == crossing->m_editorremoved)
|
||||
rebuild_geometry(*crossing);
|
||||
if (s_observer != nullptr)
|
||||
s_observer->track_retired(Track);
|
||||
}
|
||||
|
||||
void editor_track::revive(TTrack &Track)
|
||||
|
||||
Reference in New Issue
Block a user