소스 검색

ArrowHelper: copy position instead of overwriting.

Mr.doob 11 년 전
부모
커밋
55b66f6ea9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/extras/helpers/ArrowHelper.js

+ 1 - 1
src/extras/helpers/ArrowHelper.js

@@ -25,7 +25,7 @@ THREE.ArrowHelper = function ( dir, origin, length, color, headLength, headWidth
 	if ( headLength === undefined ) headLength = 0.2 * length;
 	if ( headWidth === undefined ) headWidth = 0.2 * headLength;
 
-	this.position = origin;
+	this.position.copy( origin );
 
 	var lineGeometry = new THREE.Geometry();
 	lineGeometry.vertices.push( new THREE.Vector3( 0, 0, 0 ) );