Переглянути джерело

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 );
 
 };