Browse Source

Update ArrowHelper.js

change hex to color.
srifqi 11 years ago
parent
commit
0d09419b0c
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/extras/helpers/ArrowHelper.js

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

@@ -94,9 +94,9 @@ THREE.ArrowHelper.prototype.setLength = function ( length, headLength, headWidth
 
 };
 
-THREE.ArrowHelper.prototype.setColor = function ( hex ) {
+THREE.ArrowHelper.prototype.setColor = function ( color ) {
 
-	this.line.material.color.setHex( hex );
-	this.cone.material.color.setHex( hex );
+	this.line.material.color.set( color );
+	this.cone.material.color.set( color );
 
 };