瀏覽代碼

Update ArrowHelper.js

change hex to color.
srifqi 11 年之前
父節點
當前提交
0d09419b0c
共有 1 個文件被更改,包括 3 次插入3 次删除
  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 );
 
 };