Преглед изворни кода

Texture: Fixed needsUpdate.

Mr.doob пре 11 година
родитељ
комит
d2ced2087e
1 измењених фајлова са 5 додато и 2 уклоњено
  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号