Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/camera-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class CameraManager {
if (animTracks?.length > 0 && settings.startMode === 'animTrack') {
// use the first animTrack
return animTracks[0];
} else if (isObjectExperience) {
} else if (isObjectExperience && settings.startMode !== 'none') {
// create basic rotation animation if no anim track is specified
initial.calcFocusPoint(tmpv);
return createRotateTrack(initial.position, tmpv, initial.fov);
Expand Down
2 changes: 1 addition & 1 deletion src/schemas/v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ type ExperienceSettings = {
cameras: Camera[],
annotations: Annotation[],

startMode: 'default' | 'animTrack' | 'annotation',
startMode: 'default' | 'animTrack' | 'annotation' | 'none',

hasStartPose?: boolean
};
Expand Down
2 changes: 1 addition & 1 deletion src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const migrateV2 = (v1: V1): V2 => {
}
}],
annotations: [],
startMode: v1.camera.startAnim === 'animTrack' ? 'animTrack' : 'default',
startMode: v1.camera.startAnim === 'none' ? 'none' : v1.camera.startAnim === 'animTrack' ? 'animTrack' : 'default',
hasStartPose: !!(v1.camera.position && v1.camera.target)
};
};
Expand Down