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>2011-02-10 12:29:31 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-02-10 12:29:31 +0300
commit264c8c21623c3b011494e169f0571c410331e553 (patch)
tree042e28dfb51ea1a302569e93ea33d27de7088fcf /source/blender/blenkernel/intern/mesh.c
parent0356e3b69fa13660892036fa3950c7eb91d3c691 (diff)
mesh.validate() now returns True if any corrections were made.
tested that correcting invalid meshes works by generating random meshes and checking that only the first call to mesh.validate() makes changes. found 2 bugs in mesh validation. - face sorting array wasn't assigned correct indices. - removing invalid edges used wrong comparison.
Diffstat (limited to 'source/blender/blenkernel/intern/mesh.c')
-rw-r--r--source/blender/blenkernel/intern/mesh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/mesh.c b/source/blender/blenkernel/intern/mesh.c
index 24b680703f9..2953fb17e90 100644
--- a/source/blender/blenkernel/intern/mesh.c
+++ b/source/blender/blenkernel/intern/mesh.c
@@ -709,7 +709,7 @@ void mesh_strip_loose_edges(Mesh *me)
int a,b;
for (a=b=0; a<me->totedge; a++) {
- if (me->medge[a].v1==me->medge[a].v2) {
+ if (me->medge[a].v1!=me->medge[a].v2) {
if (a!=b) {
memcpy(&me->medge[b],&me->medge[a],sizeof(me->medge[b]));
CustomData_copy_data(&me->edata, &me->edata, a, b, 1);