Explorar o código

Texture: Fixed needsUpdate.

Mr.doob %!s(int64=11) %!d(string=hai) anos
pai
achega
d2ced2087e
Modificáronse 1 ficheiros con 5 adicións e 2 borrados
  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();
+
+		}
 
 	},
 

粤ICP备19079148号