Преглед изворни кода

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 ) );