Ver Fonte

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

Michael Herzog há 9 anos atrás
pai
commit
eaf04aab5a
1 ficheiros alterados com 3 adições e 3 exclusões
  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;