2
0
Эх сурвалжийг харах

ArrowHelper: copy position instead of overwriting.

Mr.doob 11 жил өмнө
parent
commit
55b66f6ea9

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