Fix for bug #8047: convert metaballs to mesh often has holes.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 18 Feb 2008 20:00:42 +0000 (20:00 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 18 Feb 2008 20:00:42 +0000 (20:00 +0000)
source/blender/blenkernel/intern/mesh.c

index 464af9a33598cdbb98bd2bb4abb1c18dddab9b31..f3fac8d997a97c6ec907b4179169d2a2354d0a7b 100644 (file)
@@ -770,8 +770,7 @@ void mball_to_mesh(ListBase *lb, Mesh *me)
                        mface->v4= index[3];
                        mface->flag= ME_SMOOTH;
 
-                       if(mface->v3==mface->v4)
-                               mface->v4= 0;
+                       test_index_face(mface, NULL, 0, (mface->v3==mface->v4)? 3: 4);
 
                        mface++;
                        index+= 4;