Skip to content

Commit

Permalink
Merge 15c79ed into 5f60c5e
Browse files Browse the repository at this point in the history
  • Loading branch information
tsherif committed Apr 10, 2019
2 parents 5f60c5e + 15c79ed commit f477a1e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion modules/core/src/lib/model-utils.js
Expand Up @@ -70,7 +70,7 @@ export function inferAttributeAccessor(attributeName, attribute) {
default:
}

// Check for categorys
// Check for categories
switch (category) {
case 'vectors':
attribute.size = attribute.size || 3;
Expand All @@ -89,5 +89,11 @@ export function inferAttributeAccessor(attributeName, attribute) {
default:
}

// loaders.gl draco loader produces these
if (attribute.componentType !== undefined) {
attribute.type = attribute.componentType;
delete attribute.componentType;
}

assert(Number.isFinite(attribute.size), `attribute ${attributeName} needs size`);
}
2 changes: 1 addition & 1 deletion website/package.json
Expand Up @@ -22,7 +22,7 @@
"devDependencies": {
"gatsby": "2.2.0-rc.2",
"gatsby-plugin-styletron": "^3.0.5",
"ocular-gatsby": "1.0.0-alpha.16",
"ocular-gatsby": "1.0.0-alpha.17",
"sharp": "0.21.1"
}
}

0 comments on commit f477a1e

Please sign in to comment.