|
@@ -59,17 +59,17 @@ function Texture( image, mapping, wrapS, wrapT, magFilter, minFilter, format, ty
|
|
|
Texture.DEFAULT_IMAGE = undefined;
|
|
Texture.DEFAULT_IMAGE = undefined;
|
|
|
Texture.DEFAULT_MAPPING = UVMapping;
|
|
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 () {
|
|
clone: function () {
|
|
|
|
|
|