Blender Git Loki

Git Commits -> Revision d3acfa1

Revision d3acfa1 by Sybren A. Stüvel (master)
July 28, 2015, 11:54 (GMT)
BGE: Navmesh fixes and improvements

The navigation mesh functionality was broken for quite a while. This patch
contains fixes: recalculating tesselations before getting the number of
tesselation faces (it otherwise returned 0) before calculating the navmesh,
and calling `DM_ensure_tessface()` on the navmesh's `DerivedMesh` object
(which fixes visualisation in Blender). This allows one to create a new
navmesh, which also works in the BGE.

Furthermore, the patch adds several return values, and shows more error
messages when things go wrong. In several places in the navmesh creation
code, return codes weren't checked and errors silently ignored.

Reviewers: nicks, brita_, campbellbarton, lordloki, moguri, panzergame

Reviewed By: panzergame

Differential Revision: https://developer.blender.org/D1435

Commit Details:

Full Hash: d3acfa1d87ccc7932b61311b7084951dcce67eba
Parent Commit: 038d6ce
Lines Changed: +34, -7

3 Modified Paths:

/source/blender/blenkernel/intern/DerivedMesh.c (+2, -0) (Diff)
/source/blender/blenkernel/intern/navmesh_conversion.c (+23, -4) (Diff)
/source/gameengine/Ketsji/KX_NavMeshObject.cpp (+9, -3) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021