Refine type definition for scene path overrides
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user