Mr.doob 2 роки тому
батько
коміт
844100417a
4 змінених файлів з 11 додано та 9 видалено
  1. 3 3
      build/three.cjs
  2. 3 3
      build/three.js
  3. 0 0
      build/three.min.js
  4. 5 3
      build/three.module.js

+ 3 - 3
build/three.cjs

@@ -4326,7 +4326,7 @@ class Sphere {
 		if (this.isEmpty()) {
 			this.center.copy(point);
 			this.radius = 0;
-			return;
+			return this;
 		} // from https://github.com/juj/MathGeoLib/blob/2940b99b99cfe575dd45103ef20f4019dee15b54/src/Geometry/Sphere.cpp#L649-L671
 
 
@@ -4350,10 +4350,10 @@ class Sphere {
 	union(sphere) {
 		// handle empty sphere cases
 		if (sphere.isEmpty()) {
-			return;
+			return this;
 		} else if (this.isEmpty()) {
 			this.copy(sphere);
-			return;
+			return this;
 		} // from https://github.com/juj/MathGeoLib/blob/2940b99b99cfe575dd45103ef20f4019dee15b54/src/Geometry/Sphere.cpp#L759-L769
 		// To enclose another sphere into this sphere, we only need to enclose two points:
 		// 1) Enclose the farthest point on the other sphere into this sphere.

+ 3 - 3
build/three.js

@@ -4328,7 +4328,7 @@
 			if (this.isEmpty()) {
 				this.center.copy(point);
 				this.radius = 0;
-				return;
+				return this;
 			} // from https://github.com/juj/MathGeoLib/blob/2940b99b99cfe575dd45103ef20f4019dee15b54/src/Geometry/Sphere.cpp#L649-L671
 
 
@@ -4352,10 +4352,10 @@
 		union(sphere) {
 			// handle empty sphere cases
 			if (sphere.isEmpty()) {
-				return;
+				return this;
 			} else if (this.isEmpty()) {
 				this.copy(sphere);
-				return;
+				return this;
 			} // from https://github.com/juj/MathGeoLib/blob/2940b99b99cfe575dd45103ef20f4019dee15b54/src/Geometry/Sphere.cpp#L759-L769
 			// To enclose another sphere into this sphere, we only need to enclose two points:
 			// 1) Enclose the farthest point on the other sphere into this sphere.

Різницю між файлами не показано, бо вона завелика
+ 0 - 0
build/three.min.js


+ 5 - 3
build/three.module.js

@@ -5625,7 +5625,8 @@ class Sphere {
 
 			this.center.copy( point );
 			this.radius = 0;
-			return;
+
+			return this;
 
 		}
 
@@ -5658,12 +5659,13 @@ class Sphere {
 		// handle empty sphere cases
 		if ( sphere.isEmpty() ) {
 
-			return;
+			return this;
 
 		} else if ( this.isEmpty() ) {
 
 			this.copy( sphere );
-			return;
+
+			return this;
 
 		}
 

Деякі файли не було показано, через те що забагато файлів було змінено