Shrink to fit recast mesh data

pull/593/head
elsid 4 years ago
parent 93f495ecb5
commit 1a995ae68f
No known key found for this signature in database
GPG Key ID: B845CB9FEE18AB40

@ -19,5 +19,9 @@ namespace DetourNavigator
+ std::to_string(getTrianglesCount()) + ", areaTypes=" + std::to_string(mAreaTypes.size()));
if (getVerticesCount())
rcCalcBounds(mVertices.data(), static_cast<int>(getVerticesCount()), mBounds.mMin.ptr(), mBounds.mMax.ptr());
mIndices.shrink_to_fit();
mVertices.shrink_to_fit();
mAreaTypes.shrink_to_fit();
mWater.shrink_to_fit();
}
}

Loading…
Cancel
Save