mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-28 08:37:12 +00:00
Ignore non-3D agents in the navigator
This commit is contained in:
parent
4daac2b816
commit
d40c09c18c
@ -16,7 +16,8 @@ namespace DetourNavigator
|
||||
|
||||
void NavigatorImpl::addAgent(const AgentBounds& agentBounds)
|
||||
{
|
||||
if (agentBounds.mHalfExtents.length2() <= 0)
|
||||
if (agentBounds.mHalfExtents.x() == 0.f || agentBounds.mHalfExtents.y() == 0.f
|
||||
|| agentBounds.mHalfExtents.z() == 0.f)
|
||||
return;
|
||||
++mAgents[agentBounds];
|
||||
mNavMeshManager.addAgent(agentBounds);
|
||||
|
Loading…
x
Reference in New Issue
Block a user