Validate spline corridor junction shape mode

This commit is contained in:
2026-05-13 19:14:50 +02:00
parent 9e6bbf8d74
commit 57775e152b

View File

@@ -3422,6 +3422,17 @@ function validateSplineCorridorJunction(
);
}
if (!isSplineCorridorJunctionShapeMode(junction.shapeMode)) {
diagnostics.push(
createDiagnostic(
"error",
"invalid-spline-corridor-junction-shape-mode",
"Spline corridor junction shape mode must be straight, curve, or corner.",
`${path}.shapeMode`
)
);
}
if (
typeof junction.edge !== "object" ||
junction.edge === null ||