Tiny improvement.

This commit is contained in:
Relintai 2020-03-11 22:42:59 +01:00
parent 3144600da9
commit 0007d4793e

View File

@ -214,9 +214,7 @@ void FastQuadraticMeshSimplifier::simplify_mesh(float quality) {
int deletedTris = 0;
PoolVector<bool> deleted0;
deleted0.resize(20);
PoolVector<bool> deleted1;
deleted1.resize(20);
int startTrisCount = _mu_triangles.size();
int targetTrisCount = static_cast<int>(_mu_triangles.size() * quality + 0.5);