mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-02 16:36:53 +01:00
fix(editor): the traced line takes its fitted grade line once done and follows the setup, the laid end isn't a point clicked, a free end not reached isn't joined
- The line traced shown is worked out again while its grade line is being fitted (follow_meanwhile() tells a stopgap), and when the
settings of the trace change ("It's a side track", the norms): the key of its cache kept the stopgap, or the refusal, till the next
click.
- Going on from the end of the line laid, that end stays the start of the points, not one of the points clicked: Esc counted it, and
Backspace back to it then Enter said "Click at least two points" instead of ending the line.
- Leaving the lay tool cancels the laying with its wait for the terrain: left behind, a stale end with no points was laid when the tool
was back.
- A free end no candidate of the tracer reaches is told, not laid as joined with a gap left.
- A curve the trace laid slower than the line shows its speed in Plan, and a change of its radius there lays it at the speed of the line.
- A track dragged out of a free end keeps the heights of the setting while the clicks are traced: the fitted heights are for the sparse
points clicked on the photo.
- The time of a click of the tracer is checked only with EU07_TRACE_TIMING set: the coverage job of the CI, with no optimisation, took
several times as long. The evaluations are checked always.
This commit is contained in:
@@ -516,12 +516,8 @@ void editor_mode::show_track_tab(track_tab const Wanted)
|
||||
// what was going on in the mode left stays behind
|
||||
cancel_track_tools();
|
||||
m_straights.tool = 0;
|
||||
m_lay.points.clear();
|
||||
m_lay.modes.clear();
|
||||
m_lay.plan = {};
|
||||
m_lay.start = {};
|
||||
m_lay.preview.clear();
|
||||
m_lay.status.clear();
|
||||
// the wait for the terrain under the points with them: left behind, it laid a stale end with no points when the tool was back
|
||||
lay_cancel();
|
||||
m_lay.active = Tab == track_tab::lay;
|
||||
m_switch.armed = -1;
|
||||
m_signal.armed = false;
|
||||
|
||||
Reference in New Issue
Block a user