Просмотр исходного кода

Add missing isCanvasTexture property

06wj 7 лет назад
Родитель
Сommit
54fdf6304b
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/textures/CanvasTexture.js

+ 1 - 1
src/textures/CanvasTexture.js

@@ -14,6 +14,6 @@ function CanvasTexture( canvas, mapping, wrapS, wrapT, magFilter, minFilter, for
 
 
 CanvasTexture.prototype = Object.create( Texture.prototype );
 CanvasTexture.prototype = Object.create( Texture.prototype );
 CanvasTexture.prototype.constructor = CanvasTexture;
 CanvasTexture.prototype.constructor = CanvasTexture;
-
+CanvasTexture.prototype.isCanvasTexture = true;
 
 
 export { CanvasTexture };
 export { CanvasTexture };