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

feat(editor): the kept alignments and switches after a drag of the gizmo or of a point: a line all of whose paths are moved or turned as a whole takes its kept design along; paths pulled out of a kept design, or given another cant, are told about on the status line with the way back; a switch moved or turned as a whole keeps its type and its record follows it, with its km; a switch bent out of the shape of its type loses it and is told about (//$r records keep the shape of the switch); all of it in the same undo step as the drag; Polish translation

This commit is contained in:
maj00r
2026-10-11 16:57:23 +02:00
parent ddb637a3f5
commit 4ea2f4f13f
8 changed files with 307 additions and 10 deletions

View File

@@ -1307,6 +1307,7 @@ bool editor_mode::track_set_begin(bool const Rotate)
for (auto *track : m_track_drag)
states.emplace_back(track, editor_track::capture(*track));
push_track_snapshot(std::move(states));
records_watch_begin();
track_gizmo_hold();
return true;
}
@@ -1340,6 +1341,7 @@ void editor_mode::track_set_end()
track_gizmo_settle();
m_track_dirty = true;
commit_track_drag(true);
records_watch_end();
m_track_set_using = false;
m_track_drag.clear();
m_track_set_joints.clear();