Skip to content

Commit

Permalink
Vertex count for constant attribute geos with no indices
Browse files Browse the repository at this point in the history
  • Loading branch information
tsherif committed Apr 9, 2019
1 parent c6f0208 commit 16e5b2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/core/src/geometry/geometry.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ export default class Geometry {
let vertexCount = Infinity;
for (const attributeName in attributes) {
const attribute = attributes[attributeName];
const {value, size} = attribute;
if (value && size >= 1) {
const {value, size, constant} = attribute;
if (!constant && value && size >= 1) {
vertexCount = Math.min(vertexCount, value.length / size);
}
}
Expand Down

0 comments on commit 16e5b2a

Please sign in to comment.