WestLangley преди 2 години
родител
ревизия
ebf88fac8a
променени са 1 файла, в които са добавени 5 реда и са изтрити 3 реда
  1. 5 3
      src/math/Sphere.js

+ 5 - 3
src/math/Sphere.js

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