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)
|
lookAround: cloneCameraRigLookAroundSettings(entity.lookAround)
|
||||||
}
|
}
|
||||||
: {
|
: {
|
||||||
entityId: entity.id,
|
entity.railPlacementMode === "mapTargetBetweenPoints"
|
||||||
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"
|
|
||||||
? {
|
? {
|
||||||
|
entityId: entity.id,
|
||||||
|
rigType: "rail",
|
||||||
|
priority: entity.priority,
|
||||||
|
defaultActive: entity.defaultActive,
|
||||||
|
pathId: entity.pathId,
|
||||||
|
railPlacementMode: "mapTargetBetweenPoints",
|
||||||
trackStartPoint: cloneVec3(entity.trackStartPoint),
|
trackStartPoint: cloneVec3(entity.trackStartPoint),
|
||||||
trackEndPoint: cloneVec3(entity.trackEndPoint),
|
trackEndPoint: cloneVec3(entity.trackEndPoint),
|
||||||
railStartProgress: entity.railStartProgress,
|
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;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user