Fix zoom to fit bug
This commit is contained in:
@@ -71,6 +71,7 @@ function Asset({
|
|||||||
camera.updateProjectionMatrix()
|
camera.updateProjectionMatrix()
|
||||||
}
|
}
|
||||||
if (initZoom) {
|
if (initZoom) {
|
||||||
|
if (!bSphere) return
|
||||||
zoomToFit()
|
zoomToFit()
|
||||||
setInitZoom(false)
|
setInitZoom(false)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user