xzw 3 yıl önce
ebeveyn
işleme
78e96db9a8
1 değiştirilmiş dosya ile 5 ekleme ve 4 silme
  1. 5 4
      js/Hot.js

+ 5 - 4
js/Hot.js

@@ -1414,9 +1414,8 @@ window.initHot = function(model){
             var plane = this.plane;
              
             if(type == 'photo'){
-                if(this.photoHasRequestLoad || this.texType != 'photo'){
-                    callback && callback()
-                    return;
+                if(this.photoHasRequestLoad || this.texType != 'photo'){ 
+                    return; //为什么之前1191需要在这加callback() 才能呢。现在又没事了
                 }
                 //console.log('overlay beginDownload : ' + this.sid)
                 
@@ -1426,7 +1425,9 @@ window.initHot = function(model){
                     if(!tex.image ){
                         return  //只是单纯用了相同src的tex,但image仍未加载完
                     }
-                    //if(!this._loadDones)return
+                    if(!this._loadDones){
+                        return  
+                    }
                     dealMap(tex)
                     
                     setTimeout(Hot.loadNext, 50)