mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-04 05:45:35 +00:00
Merge branch 'drip' into 'master'
Ignore agents without bounding boxes Closes #5879 See merge request OpenMW/openmw!641
This commit is contained in:
commit
699bdab620
1 changed files with 2 additions and 0 deletions
|
@ -18,6 +18,8 @@ namespace DetourNavigator
|
||||||
|
|
||||||
void NavigatorImpl::addAgent(const osg::Vec3f& agentHalfExtents)
|
void NavigatorImpl::addAgent(const osg::Vec3f& agentHalfExtents)
|
||||||
{
|
{
|
||||||
|
if(agentHalfExtents.length2() <= 0)
|
||||||
|
return;
|
||||||
++mAgents[agentHalfExtents];
|
++mAgents[agentHalfExtents];
|
||||||
mNavMeshManager.addAgent(agentHalfExtents);
|
mNavMeshManager.addAgent(agentHalfExtents);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue