18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-18 00:05:59 +01:00

fix: a duplicated cab control keeps its scale table

MirrorCopy() of a duplicate: yes control (#285) now copies the scaletable: of the
duplicate's definition too, so the copy is animated on the same non-uniform scale.
This commit is contained in:
jerrrrycho
2026-11-09 16:13:43 +01:00
parent 478727850d
commit 6f1055e09d

View File

@@ -467,6 +467,7 @@ TGauge TGauge::MirrorCopy() const {
mirror.m_endscale = m_endscale;
mirror.m_endvalue = m_endvalue;
mirror.m_interpolatescale = m_interpolatescale;
mirror.m_scaletable = m_scaletable;
mirror.m_state = m_state;
mirror.m_sourcemodel = m_sourcemodel;
return mirror;