From 176538f61360fb54f0e4ce209fc7d7632bce1401 Mon Sep 17 00:00:00 2001 From: Reinier de Blois Date: Tue, 5 Apr 2016 20:34:00 +0200 Subject: Update Recast version to 1.5.0 The version of Recast that Blender ships with is from 2009. This patch updates the Recast version to the latest version, 1.5.0. The Detour version remains untouched. Reviewers: campbellbarton, moguri Reviewed By: moguri Projects: #bf_blender Differential Revision: https://developer.blender.org/D1747 --- source/blender/editors/mesh/mesh_navmesh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors') diff --git a/source/blender/editors/mesh/mesh_navmesh.c b/source/blender/editors/mesh/mesh_navmesh.c index 85868da0b15..4d07d509616 100644 --- a/source/blender/editors/mesh/mesh_navmesh.c +++ b/source/blender/editors/mesh/mesh_navmesh.c @@ -216,7 +216,7 @@ static bool buildNavMesh(const RecastData *recastParams, int nverts, float *vert /* Find triangles which are walkable based on their slope and rasterize them */ recast_markWalkableTriangles(RAD2DEGF(recastParams->agentmaxslope), verts, nverts, tris, ntris, triflags); - recast_rasterizeTriangles(verts, nverts, tris, triflags, ntris, solid); + recast_rasterizeTriangles(verts, nverts, tris, triflags, ntris, solid, 1); MEM_freeN(triflags); /* ** Step 3: Filter walkables surfaces ** */ @@ -265,7 +265,7 @@ static bool buildNavMesh(const RecastData *recastParams, int nverts, float *vert /* Create contours */ cset = recast_newContourSet(); - if (!recast_buildContours(chf, recastParams->edgemaxerror, maxEdgeLen, cset)) { + if (!recast_buildContours(chf, recastParams->edgemaxerror, maxEdgeLen, cset, RECAST_CONTOUR_TESS_WALL_EDGES)) { recast_destroyCompactHeightfield(chf); recast_destroyContourSet(cset); -- cgit v1.2.3