mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-02 22:25:23 +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:
@@ -137,7 +137,10 @@ void editor_mode::follow_ground(std::vector<segment_data> &Pieces, double const
|
||||
auto const grading{laying_grading(Style)};
|
||||
auto const bed = [&](std::vector<glm::dvec3> const &Points, std::vector<glm::dvec2> const &Directions) { return bed_heights(Points, Directions, Style); };
|
||||
if (m_follow_preview)
|
||||
ground_follow::follow_meanwhile(Pieces, {Height0, Grade0, Height1, Grade1}, bed, grading, m_fitter);
|
||||
{
|
||||
if (false == ground_follow::follow_meanwhile(Pieces, {Height0, Grade0, Height1, Grade1}, bed, grading, m_fitter))
|
||||
m_grades_waiting = true;
|
||||
}
|
||||
else
|
||||
ground_follow::follow(Pieces, {Height0, Grade0, Height1, Grade1}, bed, grading, &m_fitter);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user