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 ||