|
|
|
@ -269,9 +269,6 @@ namespace DetourNavigator
|
|
|
|
|
getRadius(settings, agentHalfExtents),
|
|
|
|
|
" changedTile=", changedTile);
|
|
|
|
|
|
|
|
|
|
const auto& boundsMin = recastMesh.getBoundsMin();
|
|
|
|
|
const auto& boundsMax = recastMesh.getBoundsMax();
|
|
|
|
|
|
|
|
|
|
auto& navMesh = navMeshCacheItem.mValue;
|
|
|
|
|
const auto& params = *navMesh.lock()->getParams();
|
|
|
|
|
const osg::Vec3f origin(params.orig[0], params.orig[1], params.orig[2]);
|
|
|
|
@ -287,6 +284,15 @@ namespace DetourNavigator
|
|
|
|
|
nullptr, nullptr));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const auto& boundsMin = recastMesh.getBoundsMin();
|
|
|
|
|
const auto& boundsMax = recastMesh.getBoundsMax();
|
|
|
|
|
|
|
|
|
|
if (boundsMin == boundsMax)
|
|
|
|
|
{
|
|
|
|
|
log("ignore add tile: recastMesh is empty");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const auto tileBounds = makeTileBounds(settings, changedTile);
|
|
|
|
|
const osg::Vec3f tileBorderMin(tileBounds.mMin.x(), boundsMin.y() - 1, tileBounds.mMin.y());
|
|
|
|
|
const osg::Vec3f tileBorderMax(tileBounds.mMax.x(), boundsMax.y() + 1, tileBounds.mMax.y());
|
|
|
|
|