Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaStorm committed Jun 27, 2016
1 parent 487a2de commit 360b183
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions lib/cacheOptimization.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ function getIndependentPrimitive(dictionary, indicesId, attributeAccessors) {
if (attributes.hasOwnProperty(semantic)) {
var accessorId = attributes[semantic];
if (defined(attributeAccessors[accessorId])) {
if (attributeAccessors[semantic] === attributes[semantic]) {
equalCount++;
}
equalCount++;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/cesiumGeometryToGltfPrimitive.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function getFirstAttributeSemantic(primitive, semantic) {
var attributes = primitive.attributes;
for (var attributeSemantic in attributes) {
if (attributes.hasOwnProperty(attributeSemantic)) {
if (attributeSemantic.replace(/[0-9]|_/g, '') === semantic) {
if (attributeSemantic.indexOf(semantic) === 0) {
return attributeSemantic;
}
}
Expand Down

0 comments on commit 360b183

Please sign in to comment.