From 0986f7be45a140e9919623ba6b31d2576b08ad76 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Wed, 13 May 2026 02:56:12 +0200 Subject: [PATCH] Add material resolution for road edges (left and right) --- src/runtime-three/runtime-scene-build.ts | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/runtime-three/runtime-scene-build.ts b/src/runtime-three/runtime-scene-build.ts index 955cb3ba..9b8e592b 100644 --- a/src/runtime-three/runtime-scene-build.ts +++ b/src/runtime-three/runtime-scene-build.ts @@ -1030,7 +1030,23 @@ function buildRuntimePath( terrainOffset: resolvedPath.terrainOffset, road: { ...path.road, - material: resolveRuntimeMaterial(document, path.road.materialId) + material: resolveRuntimeMaterial(document, path.road.materialId), + edges: { + left: { + ...path.road.edges.left, + material: resolveRuntimeMaterial( + document, + path.road.edges.left.materialId + ) + }, + right: { + ...path.road.edges.right, + material: resolveRuntimeMaterial( + document, + path.road.edges.right.materialId + ) + } + } }, points: resolvedPath.points.map(buildRuntimePathPoint), segments: resolvedPath.segments.map((segment) => ({