mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-22 11:23:27 -04: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
@ -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…
x
Reference in New Issue
Block a user