Removed Identity test in TransformVertices

Former-commit-id: a9b3fc4ddd7af762e063f0faae3b0245e24f4e18
This commit is contained in:
Lynix 2014-07-08 11:56:47 +02:00
parent c79047bd16
commit d84c2e040c
1 changed files with 0 additions and 3 deletions

View File

@ -28,9 +28,6 @@ NzBoxf NzComputeVerticesAABB(const T* vertices, unsigned int vertexCount)
template<typename T> template<typename T>
void NzTransformVertices(T* vertices, unsigned int vertexCount, const NzMatrix4f& matrix) void NzTransformVertices(T* vertices, unsigned int vertexCount, const NzMatrix4f& matrix)
{ {
if (matrix.IsIdentity())
return;
NzVector3f scale = matrix.GetScale(); NzVector3f scale = matrix.GetScale();
for (unsigned int i = 0; i < vertexCount; ++i) for (unsigned int i = 0; i < vertexCount; ++i)