zincjs 1.10.1 → 1.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zincjs",
3
- "version": "1.10.1",
3
+ "version": "1.10.2",
4
4
  "description": "ZincJS (Web-based-Zinc-Visualisation)",
5
5
  "main": "build/zinc.js",
6
6
  "directories": {
@@ -766,9 +766,11 @@ Geometry.prototype = Object.assign( Object.create( EventDispatcher.prototype ),
766
766
  // colors
767
767
 
768
768
  for ( let i = 0, il = colors2.length; i < il; i ++ ) {
769
-
770
- colors1.push( colors2[ i ].clone() );
771
-
769
+ if ((typeof colors2[ i ] === "number")) {
770
+ colors1.push( colors2[ i ] );
771
+ } else {
772
+ colors1.push( colors2[ i ].clone() );
773
+ }
772
774
  }
773
775
 
774
776
  // faces