|
@@ -92245,7 +92245,7 @@ ENDSEC
|
|
|
} */
|
|
|
}
|
|
|
|
|
|
- let { PanoramaEvents} = Potree.defines;
|
|
|
+ let { PanoramaEvents } = Potree.defines;
|
|
|
var texLoader$4 = new TextureLoader();
|
|
|
|
|
|
|
|
@@ -94430,9 +94430,10 @@ ENDSEC
|
|
|
|
|
|
var s = [Images360.filters.not(this.currentPano )],
|
|
|
l = [Images360.scoreFunctions.distanceSquared(this.currentPano ), Images360.scoreFunctions.direction(this.position, this.getDirection())];
|
|
|
- this.nearPanos = Common$1.sortByScore(this.panos, s, l);
|
|
|
+ this.nearPanos = Common$1.sortByScore(this.panos, s, l).map(e=>e.item);
|
|
|
|
|
|
//下载深度图
|
|
|
+ let depTexDlCount = browser.isMobile() ? 1 : 2;
|
|
|
let loadingCount = this.nearPanos.filter(p=>p.depthTexLoading).length;
|
|
|
if(loadingCount<depTexDlCount){
|
|
|
this.nearPanos.filter(p=>!p.depthTex).slice(0, depTexDlCount-loadingCount).forEach(p=>p.loadDepthImg());
|