From 57775e152b3f3caf9781a5eec78a03b7c8d9626c Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Wed, 13 May 2026 19:14:50 +0200 Subject: [PATCH] Validate spline corridor junction shape mode --- src/document/scene-document-validation.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/document/scene-document-validation.ts b/src/document/scene-document-validation.ts index cf1d7acf..f04d7b5c 100644 --- a/src/document/scene-document-validation.ts +++ b/src/document/scene-document-validation.ts @@ -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 ||