Refine type definition for scene path overrides

This commit is contained in:
2026-05-13 03:01:11 +02:00
parent 4b00056751
commit a65296407e

View File

@@ -835,21 +835,26 @@ export function createDefaultScenePathPoints(anchor?: Vec3): ScenePathPoint[] {
export function createScenePath( export function createScenePath(
overrides: Partial< overrides: Partial<
Pick< Omit<
ScenePath, Pick<
| "id" ScenePath,
| "name" | "id"
| "visible" | "name"
| "enabled" | "visible"
| "loop" | "enabled"
| "curveMode" | "loop"
| "sampledResolution" | "curveMode"
| "glueToTerrain" | "sampledResolution"
| "terrainOffset" | "glueToTerrain"
| "road" | "terrainOffset"
| "points" | "road"
| "points"
>,
"road"
> >
> = {} > & {
road?: Partial<ScenePathRoadSettings>;
} = {}
): ScenePath { ): ScenePath {
const points = const points =
overrides.points === undefined overrides.points === undefined