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:
authorBastien Montagne <montagne29@wanadoo.fr>2015-10-06 16:58:45 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-10-06 17:04:21 +0300
commitdded01aa5252addffcc07d958c3de58dfdaff344 (patch)
tree6ac6957cf10775170f34d8802510dddb9ea2ea6f /source/blender/editors/mesh/mesh_navmesh.c
parent84713629877d84d8c973d55e7e7cb0eca0f2ba49 (diff)
Fix T46392: Navmesh generator error.
We now have to explicitely enure tesselation of DMs when we need it. Notes: Maybe we could use looptris here as well? Not a regression (bug already present in 2.75, but not 2.74), nice to backport to 2.76 nontheless.
Diffstat (limited to 'source/blender/editors/mesh/mesh_navmesh.c')
-rw-r--r--source/blender/editors/mesh/mesh_navmesh.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/mesh/mesh_navmesh.c b/source/blender/editors/mesh/mesh_navmesh.c
index 1c36826b882..85868da0b15 100644
--- a/source/blender/editors/mesh/mesh_navmesh.c
+++ b/source/blender/editors/mesh/mesh_navmesh.c
@@ -84,6 +84,7 @@ static void createVertsTrisData(bContext *C, LinkNode *obs,
for (oblink = obs; oblink; oblink = oblink->next) {
ob = (Object *) oblink->link;
dm = mesh_create_derived_no_virtual(scene, ob, NULL, CD_MASK_MESH);
+ DM_ensure_tessface(dm);
BLI_linklist_prepend(&dms, dm);
nverts += dm->getNumVerts(dm);