[MeshPart] Fix copy-paste error

It doesn't make sense to check minLen and then call SetMinSize to maxLen
so this must be a copy-paste error.

Introduced in eb6f60469a

Found with Coverity.
This commit is contained in:
Benjamin Nauck
2021-01-30 01:05:47 +01:00
committed by wwmayer
parent 88a8eba77f
commit 49b7f237be

View File

@@ -368,7 +368,7 @@ Mesh::MeshObject* Mesher::createMesh() const
if (maxLen > 0)
hyp2d->SetMaxSize(maxLen);
if (minLen > 0)
hyp2d->SetMinSize(maxLen);
hyp2d->SetMinSize(minLen);
hyp2d->SetQuadAllowed(allowquad);
hyp2d->SetOptimize(optimize);