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(
overrides: Partial<
Pick<
ScenePath,
| "id"
| "name"
| "visible"
| "enabled"
| "loop"
| "curveMode"
| "sampledResolution"
| "glueToTerrain"
| "terrainOffset"
| "road"
| "points"
Omit<
Pick<
ScenePath,
| "id"
| "name"
| "visible"
| "enabled"
| "loop"
| "curveMode"
| "sampledResolution"
| "glueToTerrain"
| "terrainOffset"
| "road"
| "points"
>,
"road"
>
> = {}
> & {
road?: Partial<ScenePathRoadSettings>;
} = {}
): ScenePath {
const points =
overrides.points === undefined