diff --git a/src/runtime-three/runtime-scene-build.ts b/src/runtime-three/runtime-scene-build.ts index 9f07b45c..99c365a9 100644 --- a/src/runtime-three/runtime-scene-build.ts +++ b/src/runtime-three/runtime-scene-build.ts @@ -1624,11 +1624,20 @@ function buildRuntimeSceneCollections( priority: entity.priority, defaultActive: entity.defaultActive, pathId: entity.pathId, + railPlacementMode: entity.railPlacementMode, target: cloneCameraRigTargetRef(entity.target), targetOffset: cloneVec3(entity.targetOffset), transitionMode: entity.transitionMode, transitionDurationSeconds: entity.transitionDurationSeconds, - lookAround: cloneCameraRigLookAroundSettings(entity.lookAround) + lookAround: cloneCameraRigLookAroundSettings(entity.lookAround), + ...(entity.railPlacementMode === "mapTargetBetweenPoints" + ? { + trackStartPoint: cloneVec3(entity.trackStartPoint), + trackEndPoint: cloneVec3(entity.trackEndPoint), + railStartProgress: entity.railStartProgress, + railEndProgress: entity.railEndProgress + } + : {}) } ); break;