mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-02 22:06:21 +01:00
fix(editor): the tools see each change of the history by a revision of it, not by its size, which stood still once the oldest steps were dropped at the limit of 200 and came back to the same after an undo and another change: the SRK schematic, the lineside lists, the gauge, the joints, the speeds and the parallel track missed them
This commit is contained in:
@@ -59,9 +59,10 @@ bool editor_mode::track_editing() const
|
||||
return m_track_gizmo_using || m_dragging;
|
||||
}
|
||||
|
||||
std::size_t editor_mode::history_size() const
|
||||
std::size_t editor_mode::history_revision() const
|
||||
{
|
||||
return m_history.size();
|
||||
auto const top{m_history.empty() ? std::uint64_t{0} : m_history.back().serial};
|
||||
return static_cast<std::size_t>(top * 1000003u) ^ (m_history.size() << 20) ^ g_redo.size();
|
||||
}
|
||||
|
||||
glm::dvec3 editor_mode::camera_position() const
|
||||
|
||||
Reference in New Issue
Block a user