Added TracksConnectionTest ignore Y axis option
*Added an option to ignore Y distance between connected tracks during the TracksConnectionTest
This commit is contained in:
parent
18e682559d
commit
99093d35be
@ -15,6 +15,7 @@ const Constants = {
|
||||
sceneryInfoVersion: 29,
|
||||
alwaysShowLogDialog: false,
|
||||
runTracksConnectionTest: false,
|
||||
tracksConnectionTestIgnoreY: true,
|
||||
resolveElectrification: true,
|
||||
skipElectrificationErrorsPropagation: false,
|
||||
attachSigns: true,
|
||||
|
||||
@ -66,7 +66,9 @@ function _testTrackConnection(track, connection) {
|
||||
|
||||
const ownPosition = track.getEndPos(connection.end);
|
||||
const otherPosition = connection.otherTrack.getEndPos(reverseConnection.end);
|
||||
const distSq = ownPosition.distanceSq(otherPosition);
|
||||
const distSq = Constants.parser.tracksConnectionTestIgnoreY ?
|
||||
ownPosition.distanceSqExcludeY(otherPosition) :
|
||||
ownPosition.distanceSq(otherPosition);
|
||||
if (distSq > connectionThresholdDistanceSq) {
|
||||
SceneryParserLog.warn(
|
||||
'tracksConnectionTest',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user