mirror of
https://github.com/OpenMW/openmw.git
synced 2025-07-01 20:41:34 +00:00
Merge branch 'drippy-48' into 'openmw-48'
!2537 for 0.48 See merge request OpenMW/openmw!2545
This commit is contained in:
commit
5b56fe8d0d
1 changed files with 2 additions and 1 deletions
|
@ -18,7 +18,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…
Reference in a new issue