Mr.doob пре 10 година
родитељ
комит
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号