17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-30 01:37:28 +01:00

fix(editor): K splits the selected track where the cursor points on screen (as the hover highlight finds it), not at the delayed depth pick which hit the ground beside the rail

This commit is contained in:
maj00r
2026-10-12 00:44:54 +02:00
parent 704511fe5e
commit 866f626668
3 changed files with 9 additions and 5 deletions

View File

@@ -1236,7 +1236,7 @@ class editor_mode : public application_mode, private editor_track::observer
double since{0.0};
};
track_hover m_hover;
track_hover track_under_cursor() const;
track_hover track_under_cursor(TTrack const *Only = nullptr) const;
void update_track_hover();
void draw_track_hover() const;
struct track_intent