mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-22 20:10:16 -04:00
Shrink to fit recast mesh data
This commit is contained in:
parent
93f495ecb5
commit
1a995ae68f
@ -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…
x
Reference in New Issue
Block a user