mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-26 06:40:22 +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
@ -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…
x
Reference in New Issue
Block a user