mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-08-16 16:19:55 +00:00
Use vectors to store offmesh connection data rather than arrays
This commit is contained in:
@@ -463,13 +463,13 @@ struct MeshProcess : dtTileCacheMeshProcess
|
||||
// Pass in off-mesh connections.
|
||||
if (inputGeometry)
|
||||
{
|
||||
params->offMeshConVerts = inputGeometry->offMeshConVerts;
|
||||
params->offMeshConRad = inputGeometry->offMeshConRads;
|
||||
params->offMeshConDir = inputGeometry->offMeshConDirs;
|
||||
params->offMeshConAreas = inputGeometry->offMeshConAreas;
|
||||
params->offMeshConFlags = inputGeometry->offMeshConFlags;
|
||||
params->offMeshConUserID = inputGeometry->offMeshConId;
|
||||
params->offMeshConCount = inputGeometry->offMeshConCount;
|
||||
params->offMeshConVerts = inputGeometry->offmeshConnVerts.data();
|
||||
params->offMeshConRad = inputGeometry->offmeshConnRadius.data();
|
||||
params->offMeshConDir = inputGeometry->offmeshConnBidirectional.data();
|
||||
params->offMeshConAreas = inputGeometry->offmeshConnArea.data();
|
||||
params->offMeshConFlags = inputGeometry->offmeshConnFlags.data();
|
||||
params->offMeshConUserID = inputGeometry->offmeshConnId.data();
|
||||
params->offMeshConCount = static_cast<int>(inputGeometry->offmeshConnArea.size());
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user