mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-01 00:39:43 +00:00
Shrink to fit recast mesh data
This commit is contained in:
parent
6d3cc0d281
commit
0193c95b26
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue