소스 검색

Fixing videoTexture bug

Deltakosh 12 년 전
부모
커밋
9b60c7cc35
2개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  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;
         this.video.addEventListener("canplaythrough", function () {
-            that._texture.isReady = true;
+            if (that._texture) {
+                that._texture.isReady = true;
+            }
         });
 
         urls.forEach(function (url) {

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1 - 1
babylon.1.4.0.js