[3d] fix preview camera not sync up issue (#2747)

This commit is contained in:
Terry Jia
2025-02-27 08:42:07 -05:00
committed by GitHub
parent 71f3f720bf
commit cb6f2e4398
5 changed files with 49 additions and 12 deletions

View File

@@ -92,12 +92,6 @@ export class CameraManager implements CameraManagerInterface {
: 'orthographic'
}
refreshCamera() {
// TODO need to improve the logic here
this.toggleCamera()
this.toggleCamera()
}
toggleCamera(cameraType?: CameraType): void {
const oldCamera = this.activeCamera