17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-29 01:07:28 +01:00

fix(editor): a switch drive stands at the height given in its //$e description, switch: {height: ...} above the start point of the switch (rail foot): placed with a new switch, swapped for another drive or side, or following its switch; drive_headers.py writes height 0.15 for ele and ele1 and 0.05 for mech and mech1, whose models reach that far below the origin, so they stand on the sleepers; the drives with a counterweight (mech_*, mech2, 0.57 m down) keep 0, as all 1965 drives of the digitized lines do

This commit is contained in:
maj00r
2026-10-11 20:32:59 +02:00
parent b103a561e0
commit 71bdf8e284
5 changed files with 15 additions and 4 deletions

View File

@@ -38,6 +38,7 @@ struct include_info
std::string switch_hand; // a switch drive: side of the diverging track, left or right, looking from the start of the switch
std::string switch_drive; // and the side the drive stands on
bool switch_default{false}; // the drive put with a new switch until another is picked
double switch_height{0.0};
double turntable_length{0.0};
int turntable_angles{0};
int turntable_positions{0};