Pārlūkot izejas kodu

Fixing videoTexture bug

Deltakosh 12 gadi atpakaļ
vecāks
revīzija
9b60c7cc35

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

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

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1 - 1
babylon.1.4.0.js