Browse Source

Merge pull request #1119 from CraigFeldspar/patch-1

Fix when using customStatsFunction in debugLayer
David Catuhe 9 năm trước cách đây
mục cha
commit
0f73fd299b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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();
             }
         }
     }