Migrate and normalize spline corridor junction shape mode
This commit is contained in:
@@ -6051,6 +6051,12 @@ function readSplineCorridorJunctionValue(
|
|||||||
"flattenAndPaint",
|
"flattenAndPaint",
|
||||||
`${label}.terrainMode`
|
`${label}.terrainMode`
|
||||||
),
|
),
|
||||||
|
shapeMode:
|
||||||
|
value.shapeMode === undefined
|
||||||
|
? undefined
|
||||||
|
: isSplineCorridorJunctionShapeMode(value.shapeMode)
|
||||||
|
? normalizeSplineCorridorJunctionShapeMode(value.shapeMode)
|
||||||
|
: expectLiteralString(value.shapeMode, "straight", `${label}.shapeMode`),
|
||||||
edge: readScenePathRoadEdgeSettingsValue(value.edge, `${label}.edge`),
|
edge: readScenePathRoadEdgeSettingsValue(value.edge, `${label}.edge`),
|
||||||
connections: value.connections.map((connectionValue, index) =>
|
connections: value.connections.map((connectionValue, index) =>
|
||||||
readSplineCorridorJunctionConnectionValue(
|
readSplineCorridorJunctionConnectionValue(
|
||||||
|
|||||||
Reference in New Issue
Block a user