Fix zoom to fit bug

This commit is contained in:
Kurt Hutten
2021-10-18 07:42:00 +11:00
parent c402b051e2
commit e26beda598

View File

@@ -71,6 +71,7 @@ function Asset({
camera.updateProjectionMatrix() camera.updateProjectionMatrix()
} }
if (initZoom) { if (initZoom) {
if (!bSphere) return
zoomToFit() zoomToFit()
setInitZoom(false) setInitZoom(false)
} }