提交 9ee0f7dd 编写于 作者: T Tristan VALCKE

Fix Texture accessors

上级 13f13397
......@@ -59,17 +59,17 @@ function Texture( image, mapping, wrapS, wrapT, magFilter, minFilter, format, ty
Texture.DEFAULT_IMAGE = undefined;
Texture.DEFAULT_MAPPING = UVMapping;
Object.assign( Texture.prototype, EventDispatcher.prototype, {
Object.defineProperty( Texture.prototype, "needsUpdate", {
constructor: Texture,
set: function(value) { if ( value === true ) this.version ++; }
isTexture: true,
});
set needsUpdate( value ) {
Object.assign( Texture.prototype, EventDispatcher.prototype, {
if ( value === true ) this.version ++;
constructor: Texture,
},
isTexture: true,
clone: function () {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册