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/build/zinc.frontend.js +1 -1
- package/build/zinc.js +2 -2
- package/build/zinc.js.map +1 -1
- package/package.json +1 -1
- package/src/three/Geometry.js +5 -3
package/package.json
CHANGED
package/src/three/Geometry.js
CHANGED
|
@@ -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
|
-
|
|
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
|