17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-03 01:30:16 +01:00

feat(editor): K on a track is a break of the grade, as a point of a road: the track split at the cursor, the point between the two at the height of the ground and the ballast there, each of them an even grade from its other end up to it

Selftest kbreak: K on the track nearest a point, logs the joint against the ground.
This commit is contained in:
maj00r
2026-10-24 18:41:25 +02:00
parent 641619e13f
commit 9625b4b3d9
6 changed files with 57 additions and 9 deletions

View File

@@ -1800,7 +1800,7 @@ std::vector<editor_mode::key_hint> editor_mode::track_key_hints(bool const All)
{
if (gizmo && m_gizmo_snap > 0.0f)
hints.push_back({"Ctrl", format("gizmo snaps by %.2f m", m_gizmo_snap)});
hints.push_back({"K", "split the path under the cursor"});
hints.push_back({"K", "split the path under the cursor, a break of the grade at the height of the ground"});
hints.push_back({"O", "top view"});
hints.push_back({"Esc", "back to Select"});
if (Global.EditorOrtho)