xzw 2 rokov pred
rodič
commit
8cc563b0a4
1 zmenil súbory, kde vykonal 4 pridanie a 3 odobranie
  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'   ){ 
         if(this.activeViewName != 'mainView'   ){ 
             fitBound && this.orthoMoveFit(center, {bound},  duration)
             fitBound && this.orthoMoveFit(center, {bound},  duration)
         }else if(this.activeViewName == 'mainView'){
         }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
         this.currentFloor = floor