Enhance validation and runtime support for spline corridor junctions

This commit is contained in:
2026-05-13 17:16:04 +02:00
parent 068b124815
commit 6a47395d6f
2 changed files with 20 additions and 2 deletions

View File

@@ -3421,6 +3421,19 @@ function validateSplineCorridorJunction(
);
}
if (!isRecord(junction.edge)) {
diagnostics.push(
createDiagnostic(
"error",
"invalid-spline-corridor-junction-edge",
"Spline corridor junction edge settings must be an object.",
`${path}.edge`
)
);
} else {
validateScenePathRoadEdge(junction.edge, `${path}.edge`, document, diagnostics);
}
if (!Array.isArray(junction.connections) || junction.connections.length < 2) {
diagnostics.push(
createDiagnostic(