BMesh: return error on mesh validate
authorCampbell Barton <ideasman42@gmail.com>
Sat, 2 May 2015 05:52:27 +0000 (15:52 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 2 May 2015 05:52:27 +0000 (15:52 +1000)
source/blender/bmesh/intern/bmesh_mesh_validate.c

index 494da3b889bb144c2fe1f3db8621a5a473a299be..478194735f3ca7ff7dbe4e0025a9bde34e294353 100644 (file)
@@ -195,7 +195,7 @@ bool BM_mesh_validate(BMesh *bm)
 
        ERRMSG("Finished - errors %d", errtot);
 
-       return true;
+       return (errtot == 0);
 }