auto-git:
[change] src/runtime-three/runtime-scene-build.ts
This commit is contained in:
@@ -1619,25 +1619,43 @@ function buildRuntimeSceneCollections(
|
||||
lookAround: cloneCameraRigLookAroundSettings(entity.lookAround)
|
||||
}
|
||||
: {
|
||||
entityId: entity.id,
|
||||
rigType: "rail",
|
||||
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),
|
||||
...(entity.railPlacementMode === "mapTargetBetweenPoints"
|
||||
entity.railPlacementMode === "mapTargetBetweenPoints"
|
||||
? {
|
||||
entityId: entity.id,
|
||||
rigType: "rail",
|
||||
priority: entity.priority,
|
||||
defaultActive: entity.defaultActive,
|
||||
pathId: entity.pathId,
|
||||
railPlacementMode: "mapTargetBetweenPoints",
|
||||
trackStartPoint: cloneVec3(entity.trackStartPoint),
|
||||
trackEndPoint: cloneVec3(entity.trackEndPoint),
|
||||
railStartProgress: entity.railStartProgress,
|
||||
railEndProgress: entity.railEndProgress
|
||||
railEndProgress: entity.railEndProgress,
|
||||
target: cloneCameraRigTargetRef(entity.target),
|
||||
targetOffset: cloneVec3(entity.targetOffset),
|
||||
transitionMode: entity.transitionMode,
|
||||
transitionDurationSeconds:
|
||||
entity.transitionDurationSeconds,
|
||||
lookAround: cloneCameraRigLookAroundSettings(
|
||||
entity.lookAround
|
||||
)
|
||||
}
|
||||
: {
|
||||
entityId: entity.id,
|
||||
rigType: "rail",
|
||||
priority: entity.priority,
|
||||
defaultActive: entity.defaultActive,
|
||||
pathId: entity.pathId,
|
||||
railPlacementMode: "nearestToTarget",
|
||||
target: cloneCameraRigTargetRef(entity.target),
|
||||
targetOffset: cloneVec3(entity.targetOffset),
|
||||
transitionMode: entity.transitionMode,
|
||||
transitionDurationSeconds:
|
||||
entity.transitionDurationSeconds,
|
||||
lookAround: cloneCameraRigLookAroundSettings(
|
||||
entity.lookAround
|
||||
)
|
||||
}
|
||||
: {})
|
||||
}
|
||||
);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user