Explorar o código

Merge pull request #16114 from PrincessGod/dev

ArrowHelper.setColor(): support all color formats
Michael Herzog %!s(int64=6) %!d(string=hai) anos
pai
achega
c11ee3cfd6
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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 );
 
 };