mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 06:19:19 +02:00
fix(editor): a curve with a switch in it read as one curve through the main track of the switch, the switch placed into a curve on the part around the click; the diverging path of a switch placed into a canted curve lies on the conical surface of the cant along its whole length, not only at its ends; platforms by a switch keep the cant of the track for their height, the gauge of the other path only sets them back
This commit is contained in:
@@ -926,6 +926,7 @@ class editor_mode : public application_mode, private editor_track::observer
|
||||
bool switch_reach(glm::dvec3 const &Ground, glm::dvec3 &Point);
|
||||
glm::dvec3 cursor_ground() const;
|
||||
glm::dvec3 cursor_level(double const Height) const;
|
||||
std::optional<glm::dvec3> m_cursor_override;
|
||||
bool sweep_grabs(glm::dvec3 const &Point);
|
||||
// menu of the path a click of the right mouse button lands on
|
||||
struct track_context
|
||||
|
||||
Reference in New Issue
Block a user