Selaa lähdekoodia

Fix Vector3.divideSelf, previously it called an undefined method.

Robert Shield 14 vuotta sitten
vanhempi
commit
91fd762303
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 5 1
      src/core/Vector3.js

+ 5 - 1
src/core/Vector3.js

@@ -130,7 +130,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;
 
 	},