From a65296407ef0c1ed9df0d6429c0496b2c6576ef2 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Wed, 13 May 2026 03:01:11 +0200 Subject: [PATCH] Refine type definition for scene path overrides --- src/document/paths.ts | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/src/document/paths.ts b/src/document/paths.ts index 65eb7843..f18d3c4f 100644 --- a/src/document/paths.ts +++ b/src/document/paths.ts @@ -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; + } = {} ): ScenePath { const points = overrides.points === undefined