ソースを参照

branch-to-fix-#9835 (#9840)

matthias-w 9 年 前
コミット
8caf9c5d45
3 ファイル変更6 行追加0 行削除
  1. 2 0
      src/math/Vector2.js
  2. 2 0
      src/math/Vector3.js
  3. 2 0
      src/math/Vector4.js

+ 2 - 0
src/math/Vector2.js

@@ -87,6 +87,8 @@ Vector2.prototype = {
 			default: throw new Error( 'index is out of range: ' + index );
 
 		}
+		
+		return this;
 
 	},
 

+ 2 - 0
src/math/Vector3.js

@@ -79,6 +79,8 @@ Vector3.prototype = {
 			default: throw new Error( 'index is out of range: ' + index );
 
 		}
+		
+		return this;
 
 	},
 

+ 2 - 0
src/math/Vector4.js

@@ -86,6 +86,8 @@ Vector4.prototype = {
 			default: throw new Error( 'index is out of range: ' + index );
 
 		}
+		
+		return this;
 
 	},
 

粤ICP备19079148号