- made calloc for clear mverts in subsurf-mesh conversion

This commit is contained in:
Ton Roosendaal
2003-11-21 20:52:27 +00:00
parent fe46c648e2
commit 3c60f8778a

View File

@@ -746,7 +746,8 @@ static DispList *hypermesh_to_displist(HyperMesh *hme, short flag) {
dlm->totvert= nverts+handles;
dlm->totface= nfaces+handles;
dlm->mvert= MEM_mallocN(dlm->totvert*sizeof(*dlm->mvert), "dlm->mvert");
/* calloc for clear flag and nor in mvert */
dlm->mvert= MEM_callocN(dlm->totvert*sizeof(*dlm->mvert), "dlm->mvert");
dlm->mface= MEM_mallocN(dlm->totface*sizeof(*dlm->mface), "dlm->mface");
if(hme->orig_me) dlm->flag= hme->orig_me->flag;