mesh.validate() now returns True if any corrections were made.
authorCampbell Barton <ideasman42@gmail.com>
Thu, 10 Feb 2011 09:29:31 +0000 (09:29 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 10 Feb 2011 09:29:31 +0000 (09:29 +0000)
commit264c8c21623c3b011494e169f0571c410331e553
tree042e28dfb51ea1a302569e93ea33d27de7088fcf
parent0356e3b69fa13660892036fa3950c7eb91d3c691
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.
source/blender/blenkernel/BKE_mesh.h
source/blender/blenkernel/intern/mesh.c
source/blender/blenkernel/intern/mesh_validate.c
source/blender/makesrna/intern/rna_mesh_api.c