mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-25 16:43:33 +00:00
Shrink to fit recast mesh data
This commit is contained in:
parent
6d3cc0d281
commit
0193c95b26
@ -19,5 +19,9 @@ namespace DetourNavigator
|
|||||||
+ std::to_string(getTrianglesCount()) + ", areaTypes=" + std::to_string(mAreaTypes.size()));
|
+ std::to_string(getTrianglesCount()) + ", areaTypes=" + std::to_string(mAreaTypes.size()));
|
||||||
if (getVerticesCount())
|
if (getVerticesCount())
|
||||||
rcCalcBounds(mVertices.data(), static_cast<int>(getVerticesCount()), mBounds.mMin.ptr(), mBounds.mMax.ptr());
|
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