Explorar o código

#9735: Fixed copy method in THREE.Spherical (#9737)

Michael Herzog %!s(int64=9) %!d(string=hai) anos
pai
achega
eaf04aab5a
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      src/math/Spherical.js

+ 3 - 3
src/math/Spherical.js

@@ -42,9 +42,9 @@ Spherical.prototype = {
 
 	copy: function ( other ) {
 
-		this.radius.copy( other.radius );
-		this.phi.copy( other.phi );
-		this.theta.copy( other.theta );
+		this.radius = other.radius;
+		this.phi = other.phi;
+		this.theta = other.theta;
 
 		return this;