浏览代码

fix setColor

PrincessGod 6 年之前
父节点
当前提交
ba4695fd86
共有 1 个文件被更改,包括 2 次插入2 次删除
  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 ) {
 
-	this.line.material.color.copy( color );
-	this.cone.material.color.copy( color );
+	this.line.material.color.set( color );
+	this.cone.material.color.set( color );
 
 };