Przeglądaj źródła

fix: marker在俯视图可能看不到的bug

xzw 2 lat temu
rodzic
commit
adf79b3116

+ 8 - 1
public/static/lib/potree/potree.js

@@ -136785,7 +136785,14 @@ ENDSEC
 	    
 	    updateMarkerVisibles(){//限制显示的marker个数,因镜头内marker多的时候可能会卡 
 	        if(!Potree.settings.ifShowMarker)return
-	       
+	        
+	        if(this.mainViewport.camera.type == 'OrthographicCamera'){ 
+	            viewer.images360.panos.forEach(pano=>{ 
+	                Potree.Utils.updateVisible(pano.marker, 'limitMarkerShow', true );  
+	            }); 
+	            return 
+	        }
+	        
 	        
 	        const minRadius = 8 * this.images360.zoomLevel,  //当视线垂直于marker时的最小可见距离,此范围内可见的pano绝对可见
 	            maxRadius = 50 * this.images360.zoomLevel,    //当视线垂直于marker时的最大可见距离,此范围外绝对不可见

Plik diff jest za duży
+ 1 - 1
public/static/lib/potree/potree.js.map