Type safety: Use ReadonlyArray for points in junction mesh path
This commit is contained in:
@@ -22,7 +22,7 @@ export interface SplineCorridorJunctionMeshPathLike {
|
|||||||
glueToTerrain?: boolean;
|
glueToTerrain?: boolean;
|
||||||
terrainOffset?: number;
|
terrainOffset?: number;
|
||||||
road: ScenePathRoadSettings;
|
road: ScenePathRoadSettings;
|
||||||
points: readonly Array<{
|
points: ReadonlyArray<{
|
||||||
id?: string;
|
id?: string;
|
||||||
pointId?: string;
|
pointId?: string;
|
||||||
position: Vec3;
|
position: Vec3;
|
||||||
@@ -190,4 +190,3 @@ export function buildSplineCorridorJunctionMeshGeometry(options: {
|
|||||||
geometry.computeBoundingSphere();
|
geometry.computeBoundingSphere();
|
||||||
return geometry;
|
return geometry;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user