Skip to content

Commit

Permalink
Changes after review.
Browse files Browse the repository at this point in the history
  • Loading branch information
mramato committed May 9, 2017
1 parent e137165 commit d4ba10c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/Pipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,10 @@ Pipeline.processJSONWithExtras = function(gltfWithExtras, options) {
if (smoothNormals || faceNormals) {
generateNormals(gltfWithExtras, options);
}

var mergeVertices = defaultValue(options.mergeVertices, false);
if (!shouldPreserve) {
if (options.mergeVertices) {
if (mergeVertices) {
mergeDuplicateVertices(gltfWithExtras);
}
MergeDuplicateProperties.mergeAll(gltfWithExtras);
Expand Down
2 changes: 1 addition & 1 deletion specs/lib/PipelineSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ describe('Pipeline', function() {
spyOn(mergeDuplicateVertices, '_implementation').and.callThrough();
var promise = readGltf(gltfPath)
.then(function (gltf) {
return processJSONWithExtras(gltf, {mergeVertices: true}).thenReturn(gltf);
return processJSONWithExtras(gltf, {mergeVertices: true});
})
.then(function (gltf) {
expect(mergeDuplicateVertices._implementation).toHaveBeenCalledWith(gltf);
Expand Down

0 comments on commit d4ba10c

Please sign in to comment.