Browse Source

Texture: Fixed needsUpdate.

Mr.doob 10 years ago
parent
commit
d2ced2087e
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/textures/Texture.js

+ 5 - 2
src/textures/Texture.js

@@ -51,9 +51,12 @@ THREE.Texture.prototype = {
 
 	set needsUpdate ( value ) {
 
-		if ( value === true ) this.update();
+		if ( value === true ) {
 
-		this.version ++;
+			this.version ++;
+			this.update();
+
+		}
 
 	},