diff --git a/RecastDemo/Include/InputGeom.h b/RecastDemo/Include/InputGeom.h index b9db28e7..d1806b7e 100644 --- a/RecastDemo/Include/InputGeom.h +++ b/RecastDemo/Include/InputGeom.h @@ -138,7 +138,6 @@ public: /// @name Off-Mesh connections. ///@{ - [[nodiscard]] const float* getOffMeshConnectionVerts() const { return offMeshConVerts; } void addOffMeshConnection( const float* spos, const float* epos, diff --git a/RecastDemo/Source/OffMeshConnectionTool.cpp b/RecastDemo/Source/OffMeshConnectionTool.cpp index ec4967fe..edfbf217 100644 --- a/RecastDemo/Source/OffMeshConnectionTool.cpp +++ b/RecastDemo/Source/OffMeshConnectionTool.cpp @@ -85,7 +85,7 @@ void OffMeshConnectionTool::handleClick(const float* /*rayStartPos*/, const floa // Find nearest link end-point float nearestDist = FLT_MAX; int nearestIndex = -1; - const float* verts = geom->getOffMeshConnectionVerts(); + const float* verts = geom->offMeshConVerts; for (int i = 0; i < geom->offMeshConCount * 2; ++i) { float dist = rcVdistSqr(rayHitPos, &verts[i * 3]); diff --git a/RecastDemo/Source/Sample_SoloMesh.cpp b/RecastDemo/Source/Sample_SoloMesh.cpp index 380962cd..4c8416ba 100644 --- a/RecastDemo/Source/Sample_SoloMesh.cpp +++ b/RecastDemo/Source/Sample_SoloMesh.cpp @@ -707,7 +707,7 @@ bool Sample_SoloMesh::build() params.detailVertsCount = detailMesh->nverts; params.detailTris = detailMesh->tris; params.detailTriCount = detailMesh->ntris; - params.offMeshConVerts = inputGeometry->getOffMeshConnectionVerts(); + params.offMeshConVerts = inputGeometry->offMeshConVerts; params.offMeshConRad = inputGeometry->offMeshConRads; params.offMeshConDir = inputGeometry->offMeshConDirs; params.offMeshConAreas = inputGeometry->offMeshConAreas; diff --git a/RecastDemo/Source/Sample_TempObstacles.cpp b/RecastDemo/Source/Sample_TempObstacles.cpp index 5e7fa767..27eec0f0 100644 --- a/RecastDemo/Source/Sample_TempObstacles.cpp +++ b/RecastDemo/Source/Sample_TempObstacles.cpp @@ -484,7 +484,7 @@ struct MeshProcess : dtTileCacheMeshProcess // Pass in off-mesh connections. if (inputGeometry) { - params->offMeshConVerts = inputGeometry->getOffMeshConnectionVerts(); + params->offMeshConVerts = inputGeometry->offMeshConVerts; params->offMeshConRad = inputGeometry->offMeshConRads; params->offMeshConDir = inputGeometry->offMeshConDirs; params->offMeshConAreas = inputGeometry->offMeshConAreas; diff --git a/RecastDemo/Source/Sample_TileMesh.cpp b/RecastDemo/Source/Sample_TileMesh.cpp index d8884fd0..26bd35b0 100644 --- a/RecastDemo/Source/Sample_TileMesh.cpp +++ b/RecastDemo/Source/Sample_TileMesh.cpp @@ -1207,7 +1207,7 @@ unsigned char* Sample_TileMesh::buildTileMesh( params.detailVertsCount = detailPolyMesh->nverts; params.detailTris = detailPolyMesh->tris; params.detailTriCount = detailPolyMesh->ntris; - params.offMeshConVerts = inputGeometry->getOffMeshConnectionVerts(); + params.offMeshConVerts = inputGeometry->offMeshConVerts; params.offMeshConRad = inputGeometry->offMeshConRads; params.offMeshConDir = inputGeometry->offMeshConDirs; params.offMeshConAreas = inputGeometry->offMeshConAreas;