xzw %!s(int64=2) %!d(string=hai) anos
pai
achega
8cc563b0a4
Modificáronse 1 ficheiros con 4 adicións e 3 borrados
  1. 4 3
      src/custom/modules/panoEdit/panoEditor.js

+ 4 - 3
src/custom/modules/panoEdit/panoEditor.js

@@ -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