bx-1316-refactoring #14

Merged
ksenia_mikhailova merged 46 commits from bx-1316-refactoring into dev 2024-08-28 15:06:52 +03:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit dc4dc1c426 - Show all commits

View File

@ -47,8 +47,7 @@ setInterval(() => {
} else if (timer.value == 0 && !(controls.value as any).autoRotate && (controls.value as any).enabled) { } else if (timer.value == 0 && !(controls.value as any).autoRotate && (controls.value as any).enabled) {
pause() pause()
if (controls.value) { if (controls.value) {
camera.value?.position.set(10, (controls.value as any).minDistance * 0.75, (controls.value as any).minDistance); (controls.value as any).target = new Vector3(0, 0, 0);
camera.value?.lookAt(0, 0, 0);
(controls.value as any).autoRotate = true; (controls.value as any).autoRotate = true;
(controls.value as any).autoRotateSpeed = 1; (controls.value as any).autoRotateSpeed = 1;
} }

View File

@ -46,4 +46,5 @@ export const useLoading = defineStore('loading', {
} }
}, 1000) }, 1000)
}, },
}
}) })