1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-20 15:40:32 +00:00

Ignore agents without bounding boxes

This commit is contained in:
Evil Eye 2021-03-07 20:58:09 +01:00
parent e9aa161ffc
commit eb07818f13

View File

@ -18,6 +18,8 @@ namespace DetourNavigator
void NavigatorImpl::addAgent(const osg::Vec3f& agentHalfExtents)
{
if(agentHalfExtents.length2() <= 0)
return;
++mAgents[agentHalfExtents];
mNavMeshManager.addAgent(agentHalfExtents);
}