Merge branch 'drippy-48' into 'openmw-48'

!2537 for 0.48

See merge request OpenMW/openmw!2545
This commit is contained in:
psi29a 2022-12-19 23:28:47 +00:00
commit 5b56fe8d0d

View File

@ -18,7 +18,8 @@ namespace DetourNavigator
void NavigatorImpl::addAgent(const AgentBounds& agentBounds) 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; return;
++mAgents[agentBounds]; ++mAgents[agentBounds];
mNavMeshManager.addAgent(agentBounds); mNavMeshManager.addAgent(agentBounds);