Browse Source

fix: 多url报错

xzw 1 year ago
parent
commit
c37b646492
3 changed files with 1033 additions and 821 deletions
  1. 1028 816
      pnpm-lock.yaml
  2. 4 4
      public/lib/potree/potree.js
  3. 1 1
      public/lib/potree/potree.js.map

File diff suppressed because it is too large
+ 1028 - 816
pnpm-lock.yaml


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

@@ -78099,7 +78099,7 @@ void main()
 
 
 	 
-	const loadDone$1 = (tile, success)=>{
+	const loadDone = (tile, success)=>{
 	    tile.map.mapLayer.loadingInProgress--;
 	    tile.map.loadingInProgress--;
 	    //console.log('loaddone', tile.name, 'loadingInProgress',tile.map.mapLayer.loadingInProgress, Date.now())
@@ -78151,7 +78151,7 @@ void main()
 	                //tile.texURL && tile.texURL.includes('testdata') && console.log('loadDone and dispose',   tile.texURL.split('map_tiles/')[1] )
 	                tex.dispose();   
 	            } 
-	            loadDone$1(tile, true);
+	            loadDone(tile, true);
 	        } , void 0, (()=>{//error
 	            tile.textureLoaded = !0;
 	            if(tile.mesh){ 
@@ -78159,7 +78159,7 @@ void main()
 	                tile.mesh.material = errorMaterial; 
 	                tile.map.mapLayer.viewer.mapChanged = true; 
 	            } 
-	            loadDone$1(tile, false);
+	            loadDone(tile, false);
 	            tile.map.loadFailCount ++ ;
 	            
 	            if(tile.map instanceof TiledMapOpenStreetMap && Potree.settings.mapCompany == 'google' && tile.map.loadFailCount > 3){//极有可能没有vpn为了防止影响到其他资源加载,减少加载的个数
@@ -164065,7 +164065,7 @@ ENDSEC
 	            fileInfo_.parentInfo.loadedCount ++;
 	            fileInfo_.parentInfo.modelGroup.add(object); 
 	            if(fileInfo_.parentInfo.loadedCount == fileInfo_.parentInfo.url.length){ 
-	                return loadDone(fileInfo_.parentInfo.modelGroup, fileInfo_.parentInfo)
+	                return this.modelLoaded(fileInfo_.parentInfo.modelGroup, fileInfo_.parentInfo)
 	            }else { 
 	                return
 	            }   

File diff suppressed because it is too large
+ 1 - 1
public/lib/potree/potree.js.map