Fix for bug #8346: compiling with verse enabled was broken.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Sun, 24 Feb 2008 12:23:47 +0000 (12:23 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Sun, 24 Feb 2008 12:23:47 +0000 (12:23 +0000)
Fix provided by Fabian Boehlke, thanks!

source/blender/src/verse_mesh.c

index 2257eac41f5c21d6ebb8b6d28b9d4bb5c559c1c7..d458e7f4c1cc91072d7879ef4421e762c1996246 100644 (file)
@@ -1495,8 +1495,8 @@ void create_meshdata_from_geom_node(Mesh *me, VNode *vnode)
                MEdge *medge = me->medge = CustomData_add_layer(&me->edata, CD_MEDGE, CD_CALLOC, NULL, me->totedge);
 
                for(i = BLI_edgehashIterator_new(edges); !BLI_edgehashIterator_isDone(i); BLI_edgehashIterator_step(i), ++medge) {
+                       memset(medge, 0, sizeof(struct MEdge));
                        BLI_edgehashIterator_getKey(i, (int*)&medge->v1, (int*)&medge->v2);
-                       medge->crease = medge->pad = medge->flag = 0;
                }
                BLI_edgehashIterator_free(i);
        }