Mr.doob 10 лет назад
Родитель
Сommit
e3ca4e2464
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/math/Color.js

+ 1 - 1
src/math/Color.js

@@ -273,7 +273,7 @@ THREE.Color.prototype = {
 
 	clone: function () {
 
-		return new this.constructor( this.color );
+		return new this.constructor( this.r, this.g, this.b );
 
 	},
 

粤ICP备19079148号