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:
parent
e9aa161ffc
commit
eb07818f13
@ -18,6 +18,8 @@ namespace DetourNavigator
|
||||
|
||||
void NavigatorImpl::addAgent(const osg::Vec3f& agentHalfExtents)
|
||||
{
|
||||
if(agentHalfExtents.length2() <= 0)
|
||||
return;
|
||||
++mAgents[agentHalfExtents];
|
||||
mNavMeshManager.addAgent(agentHalfExtents);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user