Jelajahi Sumber

Fixing videoTexture bug

Deltakosh 12 tahun lalu
induk
melakukan
9b60c7cc35
2 mengubah file dengan 4 tambahan dan 2 penghapusan
  1. 3 1
      Babylon/Materials/textures/babylon.videoTexture.js
  2. 1 1
      babylon.1.4.0.js

+ 3 - 1
Babylon/Materials/textures/babylon.videoTexture.js

@@ -22,7 +22,9 @@
 
 
         var that = this;
         var that = this;
         this.video.addEventListener("canplaythrough", function () {
         this.video.addEventListener("canplaythrough", function () {
-            that._texture.isReady = true;
+            if (that._texture) {
+                that._texture.isReady = true;
+            }
         });
         });
 
 
         urls.forEach(function (url) {
         urls.forEach(function (url) {

File diff ditekan karena terlalu besar
+ 1 - 1
babylon.1.4.0.js