Fix #33421: collada import of a mesh with loose edges did not draw the edges in the...
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 6 Dec 2012 06:13:43 +0000 (06:13 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 6 Dec 2012 06:13:43 +0000 (06:13 +0000)
source/blender/collada/MeshImporter.cpp

index 8337a977b3b9675a115131a0d6c02f3ea3e6e204..de8d1e85eb999a72790b27844d32a061292832e4 100644 (file)
@@ -589,7 +589,7 @@ void MeshImporter::read_lines(COLLADAFW::Mesh *mesh, Mesh *me)
                                for (int i = 0; i < edge_count; i++, med++) {
                                        med->bweight = 0;
                                        med->crease  = 0;
-                                       med->flag    = 0;
+                                       med->flag   |= ME_LOOSEEDGE;
                                        med->v1      = indices[2 * i];
                                        med->v2      = indices[2 * i + 1];
                                }