Explorar o código

Fix when using customStatsFunction in debugLayer

Benjamin Guignabert %!s(int64=9) %!d(string=hai) anos
pai
achega
ae3b0b15f0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Debug/babylon.debugLayer.ts

+ 1 - 1
src/Debug/babylon.debugLayer.ts

@@ -826,7 +826,7 @@
                 + glInfo.renderer + "<br>";
 
             if (this.customStatsFunction) {
-                this._statsSubsetDiv.innerHTML += this._statsSubsetDiv.innerHTML;
+                this._statsSubsetDiv.innerHTML += this.customStatsFunction();
             }
         }
     }