Use target camera radius and zoom when calculating view state

This commit is contained in:
2026-04-27 00:54:26 +02:00
parent c98d513ebf
commit ab7ebcd8ec

View File

@@ -1557,11 +1557,13 @@ export class ViewportHost {
z: this.cameraTarget.z
},
perspectiveOrbit: {
radius: this.cameraSpherical.radius,
radius:
this.targetPerspectiveCameraRadius ?? this.cameraSpherical.radius,
theta: this.cameraSpherical.theta,
phi: this.cameraSpherical.phi
},
orthographicZoom: this.orthographicCamera.zoom
orthographicZoom:
this.targetOrthographicCameraZoom ?? this.orthographicCamera.zoom
};
}