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:
authorCampbell Barton <ideasman42@gmail.com>2012-01-24 00:46:38 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-01-24 00:46:38 +0400
commitd65a5a92f99867f085082d7f46e0bbc8d095c438 (patch)
tree0b138bbc9c70716bac6126a02a147258b19e7de7 /source/blender/blenkernel/intern/bvhutils.c
parent92aa15805d38810ace8cb5d2210a56abaef32ed0 (diff)
assertion when bvhtree_from_mesh_faces is called and tessfaces dont exist.
Diffstat (limited to 'source/blender/blenkernel/intern/bvhutils.c')
-rw-r--r--source/blender/blenkernel/intern/bvhutils.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/bvhutils.c b/source/blender/blenkernel/intern/bvhutils.c
index 1c70e47a538..c9ab126d7ab 100644
--- a/source/blender/blenkernel/intern/bvhutils.c
+++ b/source/blender/blenkernel/intern/bvhutils.c
@@ -574,6 +574,13 @@ BVHTree* bvhtree_from_mesh_faces(BVHTreeFromMesh *data, DerivedMesh *mesh, float
int i;
int numFaces= mesh->getNumTessFaces(mesh);
+ /* BMESH spesific check that we have tessfaces,
+ * we _could_ tesselate here but rather not - campbell
+ *
+ * this assert checks we have tessfaces,
+ * if not caller should use DM_ensure_tessface() */
+ BLI_assert(!(numFaces == 0 && mesh->getNumPolys(mesh) != 0));
+
if(numFaces != 0)
{
/* Create a bvh-tree of the given target */