17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-17 13:19:20 +02:00

fix(editor): a track lengthened past 90 degrees goes on as new tracks instead of hidden paths

A regular track draws and saves only its first path; the pieces of a lengthened curve past the first
are now tracks of their own, made and dropped while dragging, taken back by one undo.
This commit is contained in:
maj00r
2026-10-11 13:06:45 +02:00
parent 89678ead3e
commit b486eb33d5
2 changed files with 40 additions and 0 deletions

View File

@@ -656,6 +656,7 @@ class editor_mode : public application_mode, private editor_track::observer
std::vector<std::pair<TTrack *, editor_track::point_ref>> partners;
glm::dvec3 fixed{0.0};
std::vector<std::pair<TTrack *, std::vector<int>>> held;
std::vector<TTrack *> extra;
};
track_gizmo_drag m_track_gizmo_drag;
gizmo_operation track_gizmo_operation(TTrack const &Track, bool const Pointmode) const;