diff options
author | Sybren A. Stüvel <sybren@stuvel.eu> | 2015-07-28 14:54:41 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@stuvel.eu> | 2015-07-28 14:54:41 +0300 |
commit | d3acfa1d87ccc7932b61311b7084951dcce67eba (patch) | |
tree | d5455c89c4a81dbba2e198d3e61711e535517aa0 /source/gameengine/BlenderRoutines | |
parent | 038d6ce2cce5aaabfbba90d934b235601fcb561f (diff) |
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
Diffstat (limited to 'source/gameengine/BlenderRoutines')
0 files changed, 0 insertions, 0 deletions