Bladeren bron

正对热点

xzw 3 jaren geleden
bovenliggende
commit
0987209bf2
1 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 3 3
      public/SuperTwo/js/Hot.js

+ 3 - 3
public/SuperTwo/js/Hot.js

@@ -1072,14 +1072,14 @@ window.initHot = function(model){
             var i = []
               , n = []
               , r = this.mesh.getWorldPosition();
-            if (e === "panorama") {
+            /* if (e === "panorama") {
                 var o = t.position.clone().sub(r).normalize();
                 n.push(function(t, i) {//scoreFunctions.direction
                     return function(e) {
                         return e.position.clone().sub(t).normalize().dot(i) * window._settings.navigation.directionFactor
                     }}(r, o)
                 )
-            }
+            } */
             var a = new THREE.Vector3;
             i.push(function(e) {
                     return Math.abs(e.position.x - r.x) > window._settings.tags.visibility.cameraClearance   || Math.abs(e.position.z - r.z) > window._settings.tags.visibility.cameraClearance  
@@ -1394,7 +1394,7 @@ window.initHot = function(model){
                     
                     setTimeout(Hot.loadNext, 50) 
                     hotGroup.children.forEach(e=>{
-                        if(e.info.texSrc == this.info.texSrc){ 
+                        if(e.info.texSrc == this.info.texSrc && e.info.texType == type){ 
                             e.material_.color.set("#FFFFFF") 
                             e.material_.opacity = 1;
                             console.log('overlay loaded: ' + e.sid + " - " + this.info.texSrc.split('/').pop());