Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReinier de Blois <rddeblois@gmail.com>2016-04-05 21:34:00 +0300
committerPorteries Tristan <republicthunderbolt9@gmail.com>2016-04-05 22:38:52 +0300
commit176538f61360fb54f0e4ce209fc7d7632bce1401 (patch)
treefdc3534cd6b8e2e1376925a9700e8d20c50734d4 /source/blender/editors
parent214e384fc4ac0924fcad26f5eb64fc9e4c24b8a8 (diff)
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
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/mesh/mesh_navmesh.c4
1 files changed, 2 insertions, 2 deletions
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);