-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dont optimize without indices #155
Conversation
}; | ||
expect(function() { | ||
cacheOptimization(gltf); | ||
}).not.toThrowRuntimeError(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a better way to test this, since we don't actually throw RuntimeErrors in gltf-pipeline.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just checked and this doesn't fail without the changes, so you're right, we need a better test here.
Updated |
} | ||
} | ||
}; | ||
cacheOptimization(gltf); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should have at least one expect in here. Maybe just create a spy for GeometryPipeline.reorderForPostVertexCache
and check that it's not called.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh well I guess that would pass for both...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, that should work. gltfPrimitiveToCesiumGeometry would work too.
Updated |
Sorry just had a last minute thought, can you update CHANGES.md with the change? We should start getting in the habit of this now. |
Yup |
Fixes #154, @lilleyse, could you look at this when you get a chance?