Преглед на файлове

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

Robert Shield преди 14 години
родител
ревизия
91fd762303
променени са 1 файла, в които са добавени 5 реда и са изтрити 1 реда
  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;
 
 	},