mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-28 13:27:30 +01:00
fix(editor): drive_headers.py writes height 0 for every switch drive, as all drives of the digitized lines stand at the rail foot of the start of the switch
This commit is contained in:
@@ -17,7 +17,6 @@ FOLDER = 'scenery/tory/napedy'
|
||||
PATTERN = re.compile(r'^(ele1?|mech[12]?)-rz([lp])-([lp])((?:_[a-z]+)*)\.inc$')
|
||||
KINDS = {'ele': 'elektryczny', 'mech': 'mechaniczny'}
|
||||
DEFAULT = 'ele'
|
||||
HEIGHTS = {'ele': 0.15, 'ele1': 0.15, 'mech': 0.05, 'mech1': 0.05}
|
||||
|
||||
|
||||
def examine(path, file):
|
||||
@@ -50,7 +49,7 @@ def examine(path, file):
|
||||
'name: ' + family,
|
||||
'category: switch drive',
|
||||
'description: "' + description + '"',
|
||||
'switch: {hand: %s, drive: %s, height: %s%s}' % (hand, side, HEIGHTS.get(family, 0), ', default: true' if family == DEFAULT else ''),
|
||||
'switch: {hand: %s, drive: %s, height: 0%s}' % (hand, side, ', default: true' if family == DEFAULT else ''),
|
||||
'params:',
|
||||
' - {id: 1, role: track, label: Switch}',
|
||||
' - {id: 2, role: pos.x}',
|
||||
|
||||
Reference in New Issue
Block a user