Explorar o código

Merge remote-tracking branch 'robertshield/master' into dev

Mr.doob %!s(int64=14) %!d(string=hai) anos
pai
achega
4e1d803a5e
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      src/core/Vector3.js

+ 5 - 1
src/core/Vector3.js

@@ -132,7 +132,11 @@ THREE.Vector3.prototype = {
 
 	divideSelf: function ( v ) {
 
-		return this.divide( this, v );
+		this.x /= v.x;
+		this.y /= v.y;
+		this.z /= v.z;
+
+		return this;
 
 	},