mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-29 08:07:29 +01:00
fix(editor): the route design keeps its whole fragment after Apply: the last path of the line is the one holding the last piece, not the original end path holding the first piece of its group, so a second Apply (e.g. after changing the share of a compound curve) no longer re-lays only the front part and leaves the old tail lying next to the new paths; the same for the curve laid with the straight tool
This commit is contained in:
@@ -814,7 +814,7 @@ class editor_mode : public application_mode, private editor_track::observer
|
||||
void render_route_stored();
|
||||
void route_update() { m_route.result = alignment::compute(m_route.design); }
|
||||
void route_apply();
|
||||
bool route_relay_through_switches(editor_track::chain const &Chain, std::vector<std::pair<TTrack *, editor_track::state>> &States, std::vector<TTrack *> &Created);
|
||||
bool route_relay_through_switches(editor_track::chain const &Chain, std::vector<std::pair<TTrack *, editor_track::state>> &States, std::vector<TTrack *> &Created, TTrack *&Last);
|
||||
void route_recommend(alignment::vertex &Vertex) const;
|
||||
void draw_route_overlay() const;
|
||||
void render_route_gizmo();
|
||||
|
||||
Reference in New Issue
Block a user