Browse Source

Merge pull request #12868 from takahirox/FixTexture

Fix Texture
Mr.doob 7 years ago
parent
commit
8a7da6210b
1 changed files with 10 additions and 10 deletions
  1. 10 10
      src/textures/Texture.js

+ 10 - 10
src/textures/Texture.js

@@ -64,16 +64,6 @@ 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.defineProperty( Texture.prototype, "needsUpdate", {
-
-	set: function ( value ) {
-
-		if ( value === true ) this.version ++;
-
-	}
-
-} );
-
 Texture.prototype = Object.assign( Object.create( EventDispatcher.prototype ), {
 Texture.prototype = Object.assign( Object.create( EventDispatcher.prototype ), {
 
 
 	constructor: Texture,
 	constructor: Texture,
@@ -319,5 +309,15 @@ Texture.prototype = Object.assign( Object.create( EventDispatcher.prototype ), {
 
 
 } );
 } );
 
 
+Object.defineProperty( Texture.prototype, "needsUpdate", {
+
+	set: function ( value ) {
+
+		if ( value === true ) this.version ++;
+
+	}
+
+} );
+
 
 
 export { Texture };
 export { Texture };