Browse Source

fix setColor

PrincessGod 6 years ago
parent
commit
ba4695fd86
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/helpers/ArrowHelper.js

+ 2 - 2
src/helpers/ArrowHelper.js

@@ -114,8 +114,8 @@ ArrowHelper.prototype.setLength = function ( length, headLength, headWidth ) {
 
 
 ArrowHelper.prototype.setColor = function ( color ) {
 ArrowHelper.prototype.setColor = function ( color ) {
 
 
-	this.line.material.color.copy( color );
-	this.cone.material.color.copy( color );
+	this.line.material.color.set( color );
+	this.cone.material.color.set( color );
 
 
 };
 };