|
@@ -700,9 +700,10 @@ class PanoEditor extends THREE.EventDispatcher{
|
|
|
if(this.activeViewName != 'mainView' ){
|
|
|
fitBound && this.orthoMoveFit(center, {bound}, duration)
|
|
|
}else if(this.activeViewName == 'mainView'){
|
|
|
- if(floor != 'all'){ //切换一下位置,因为原处点云会消失
|
|
|
- viewer.scene.view.setView({position:center, duration })
|
|
|
- }
|
|
|
+ //if(floor != 'all'){ //切换一下位置,因为原处点云会消失
|
|
|
+ //viewer.scene.view.setView({position:center, duration })
|
|
|
+ viewer.focusOnObject({boundingBox:bound},'boundingBox')
|
|
|
+ //}
|
|
|
}
|
|
|
|
|
|
this.currentFloor = floor
|