Fixed Issue 27: RecastMeshDetail.cpp:buildPolyDetail: Unused parameter: reg
This commit is contained in:
parent
8d146ade90
commit
121807b601
@ -481,7 +481,7 @@ static void delaunayHull(const int npts, const float* pts,
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
static bool buildPolyDetail(const float* in, const int nin, unsigned short reg,
|
static bool buildPolyDetail(const float* in, const int nin,
|
||||||
const float sampleDist, const float sampleMaxError,
|
const float sampleDist, const float sampleMaxError,
|
||||||
const rcCompactHeightfield& chf, const rcHeightPatch& hp,
|
const rcCompactHeightfield& chf, const rcHeightPatch& hp,
|
||||||
float* verts, int& nverts, rcIntArray& tris,
|
float* verts, int& nverts, rcIntArray& tris,
|
||||||
@ -981,7 +981,7 @@ bool rcBuildPolyMeshDetail(const rcPolyMesh& mesh, const rcCompactHeightfield& c
|
|||||||
|
|
||||||
// Build detail mesh.
|
// Build detail mesh.
|
||||||
int nverts = 0;
|
int nverts = 0;
|
||||||
if (!buildPolyDetail(poly, npoly, mesh.regs[i],
|
if (!buildPolyDetail(poly, npoly,
|
||||||
sampleDist, sampleMaxError,
|
sampleDist, sampleMaxError,
|
||||||
chf, hp, verts, nverts, tris,
|
chf, hp, verts, nverts, tris,
|
||||||
edges, samples))
|
edges, samples))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user