Browse Source

Updated builds.

Mr.doob 3 years ago
parent
commit
edb81270e4
4 changed files with 73 additions and 3 deletions
  1. 22 1
      build/three.cjs
  2. 22 1
      build/three.js
  3. 0 0
      build/three.min.js
  4. 29 1
      build/three.module.js

+ 22 - 1
build/three.cjs

@@ -1746,6 +1746,12 @@ class Color {
 		return this.getHex();
 	}
 
+	*[Symbol.iterator]() {
+		yield this.r;
+		yield this.g;
+		yield this.b;
+	}
+
 }
 
 Color.NAMES = _colorKeywords;
@@ -2800,11 +2806,12 @@ class WebGLMultipleRenderTargets extends WebGLRenderTarget {
 		this.scissor.set(0, 0, this.width, this.height);
 		this.depthBuffer = source.depthBuffer;
 		this.stencilBuffer = source.stencilBuffer;
-		this.depthTexture = source.depthTexture;
+		if (source.depthTexture !== null) this.depthTexture = source.depthTexture.clone();
 		this.texture.length = 0;
 
 		for (let i = 0, il = source.texture.length; i < il; i++) {
 			this.texture[i] = source.texture[i].clone();
+			this.texture[i].isRenderTargetTexture = true;
 		}
 
 		return this;
@@ -3341,6 +3348,13 @@ class Quaternion {
 
 	_onChangeCallback() {}
 
+	*[Symbol.iterator]() {
+		yield this._x;
+		yield this._y;
+		yield this._z;
+		yield this._w;
+	}
+
 }
 
 Quaternion.prototype.isQuaternion = true;
@@ -5782,6 +5796,13 @@ class Euler {
 
 	_onChangeCallback() {}
 
+	*[Symbol.iterator]() {
+		yield this._x;
+		yield this._y;
+		yield this._z;
+		yield this._order;
+	}
+
 }
 
 Euler.prototype.isEuler = true;

+ 22 - 1
build/three.js

@@ -1748,6 +1748,12 @@
 			return this.getHex();
 		}
 
+		*[Symbol.iterator]() {
+			yield this.r;
+			yield this.g;
+			yield this.b;
+		}
+
 	}
 
 	Color.NAMES = _colorKeywords;
@@ -2802,11 +2808,12 @@
 			this.scissor.set(0, 0, this.width, this.height);
 			this.depthBuffer = source.depthBuffer;
 			this.stencilBuffer = source.stencilBuffer;
-			this.depthTexture = source.depthTexture;
+			if (source.depthTexture !== null) this.depthTexture = source.depthTexture.clone();
 			this.texture.length = 0;
 
 			for (let i = 0, il = source.texture.length; i < il; i++) {
 				this.texture[i] = source.texture[i].clone();
+				this.texture[i].isRenderTargetTexture = true;
 			}
 
 			return this;
@@ -3343,6 +3350,13 @@
 
 		_onChangeCallback() {}
 
+		*[Symbol.iterator]() {
+			yield this._x;
+			yield this._y;
+			yield this._z;
+			yield this._w;
+		}
+
 	}
 
 	Quaternion.prototype.isQuaternion = true;
@@ -5784,6 +5798,13 @@
 
 		_onChangeCallback() {}
 
+		*[Symbol.iterator]() {
+			yield this._x;
+			yield this._y;
+			yield this._z;
+			yield this._order;
+		}
+
 	}
 
 	Euler.prototype.isEuler = true;

File diff suppressed because it is too large
+ 0 - 0
build/three.min.js


+ 29 - 1
build/three.module.js

@@ -2123,6 +2123,14 @@ class Color {
 
 	}
 
+	*[ Symbol.iterator ]() {
+
+		yield this.r;
+		yield this.g;
+		yield this.b;
+
+	}
+
 }
 
 Color.NAMES = _colorKeywords;
@@ -3580,13 +3588,15 @@ class WebGLMultipleRenderTargets extends WebGLRenderTarget {
 
 		this.depthBuffer = source.depthBuffer;
 		this.stencilBuffer = source.stencilBuffer;
-		this.depthTexture = source.depthTexture;
+
+		if ( source.depthTexture !== null ) this.depthTexture = source.depthTexture.clone();
 
 		this.texture.length = 0;
 
 		for ( let i = 0, il = source.texture.length; i < il; i ++ ) {
 
 			this.texture[ i ] = source.texture[ i ].clone();
+			this.texture[ i ].isRenderTargetTexture = true;
 
 		}
 
@@ -4280,6 +4290,15 @@ class Quaternion {
 
 	_onChangeCallback() {}
 
+	*[ Symbol.iterator ]() {
+
+		yield this._x;
+		yield this._y;
+		yield this._z;
+		yield this._w;
+
+	}
+
 }
 
 Quaternion.prototype.isQuaternion = true;
@@ -7458,6 +7477,15 @@ class Euler {
 
 	_onChangeCallback() {}
 
+	*[ Symbol.iterator ]() {
+
+		yield this._x;
+		yield this._y;
+		yield this._z;
+		yield this._order;
+
+	}
+
 }
 
 Euler.prototype.isEuler = true;

Some files were not shown because too many files changed in this diff