diff options
author | Ton Roosendaal <ton@blender.org> | 2003-11-21 23:52:27 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2003-11-21 23:52:27 +0300 |
commit | 3c60f8778aa190fa0bf6cc1c220472cdaf04d8b9 (patch) | |
tree | 3cb796e4ca37fe42e66a0364952dc50a17d9795b /source/blender/blenkernel/intern | |
parent | fe46c648e285af6f1c0dda1c6da144f6bbcac56c (diff) |
- made calloc for clear mverts in subsurf-mesh conversion
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/subsurf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/subsurf.c b/source/blender/blenkernel/intern/subsurf.c index c00ba066761..4df97851fd9 100644 --- a/source/blender/blenkernel/intern/subsurf.c +++ b/source/blender/blenkernel/intern/subsurf.c @@ -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; |