xzw 2 年之前
父节点
当前提交
f683e4851e
共有 2 个文件被更改,包括 5 次插入7 次删除
  1. 4 6
      public/static/lib/potree/potree.js
  2. 1 1
      public/static/lib/potree/potree.js.map

+ 4 - 6
public/static/lib/potree/potree.js

@@ -54299,7 +54299,7 @@
 	    tranCamera(viewport,  info, duration,  easeName){
 	        viewport.camera = info.midCamera;
 	        //viewport.camera.matrixWorld = info.endCamera.matrixWorld
-	        
+	        console.log('tranCamera');
 	         
 	        //viewer.setCameraMode(CameraMode.ORTHOGRAPHIC) 
 	        info.midCamera.projectionMatrix.copy(info.startCamera.projectionMatrix);
@@ -54308,9 +54308,7 @@
 	        info.onUpdate = (progress, delta)=>{ 
 	            lerp.matrix4(info.midCamera.projectionMatrix, info.endCamera.projectionMatrix)(progress); 
 	            
-	            /* console.log('matrixWorld', viewport.camera.position.toArray(), viewport.camera.matrixWorld.toArray())
-	            console.log('projectionMatrix', info.endCamera.zoom,  viewport.camera.projectionMatrix.toArray())
-	             */
+	            
 	            onUpdate && onUpdate(progress, delta);
 	        };
 	        
@@ -54322,7 +54320,7 @@
 	            }); 
 	            viewer.dispatchEvent({type:'camera_changed', viewport:viewer.mainViewport, changeInfo:{}});//update sprite
 	            
-	            
+	            console.log('tranCamera end');
 	            callback && callback();
 	        }; 
 	        info.forbitCancel = true; 
@@ -97271,7 +97269,7 @@ ENDSEC
 
 
 		cancelFlyToPano(toPano){//取消当前已有的飞行准备,前提是相机还未移动 
-	        if(viewer.mainViewport.view.isFlying() || toPano && this.latestToPano != toPano)return
+	        if(/* viewer.mainViewport.view.isFlying() ||  */toPano && this.latestToPano != toPano)return
 	        //Potree.Log('cancelFlyToPano', this.latestToPano && this.latestToPano.pano.id)
 	        this.nextPano = null; 
 	        this.latestToPano = null; 

文件差异内容过多而无法显示
+ 1 - 1
public/static/lib/potree/potree.js.map