|
@@ -590,7 +590,7 @@ export class FirstPersonControls extends THREE.EventDispatcher {
|
|
|
let speed
|
|
|
let pano = viewer.images360.findNearestPano()
|
|
|
if(!pano){
|
|
|
- if(!viewer.bound)return
|
|
|
+ if(!viewer.bound || viewer.bound.boundSize.x == 0)return
|
|
|
let boundFloor = viewer.bound.boundingBox.clone();
|
|
|
boundFloor.max.z = boundFloor.min.z
|
|
|
speed = boundFloor.distanceToPoint(viewer.mainViewport.view.position)
|