mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-19 09:39:19 +02: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:
@@ -933,6 +933,7 @@ class editor_mode : public application_mode, private editor_track::observer
|
||||
{
|
||||
std::string name;
|
||||
std::array<std::string, 4> files;
|
||||
std::array<double, 4> heights{};
|
||||
bool preferred{false};
|
||||
};
|
||||
std::vector<drive_family> drives;
|
||||
|
||||
Reference in New Issue
Block a user