Przeglądaj źródła

Color: Fixed clone.

Mr.doob 10 lat temu
rodzic
commit
e3ca4e2464
1 zmienionych plików z 1 dodań i 1 usunięć
  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号