mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-02 11:39:14 +01:00
fix(editor): the free design gets no transition curves from the Plan tools
Dragging an end of a straight refits the curve next to it with the cant and the transition curves recommended for the speed, keeping the curve's own only where it had some; a plain arc laid freely came out with transitions. Break and S-curve took the recommended transitions too. The recommendation of a design not checked against the norms is a plain arc now, the tools take the norms in effect rather than the ones the design was last computed with, and the Plan panel calls the automatic choice "None" in the free design. Self-test: norms free|plk.
This commit is contained in:
@@ -1294,6 +1294,7 @@ class editor_mode : public application_mode, private editor_track::observer, pri
|
||||
bool m_norms_free{true};
|
||||
alignment::limits laying_norms() const;
|
||||
bool render_norms_choice();
|
||||
void set_norms_free(bool const Free);
|
||||
glm::dvec3 lay_angle_snap(glm::dvec3 const &Mouse, std::string &Label) const;
|
||||
// the straight track Alt turns the laid straight to: the nearest one the straight from From to To crosses, or one along From
|
||||
TTrack const *skew_reference(glm::dvec3 const &From, glm::dvec3 const &To, double const Reach) const;
|
||||
|
||||
Reference in New Issue
Block a user