Mesh->mselect (the selection storage) didn't get zero'ed on duplicate,
potentially causing crashes. Bad!
This commit is contained in:
Ton Roosendaal 2006-11-04 12:26:35 +00:00
parent 916ea9b6d3
commit 8e862a22ea

@ -240,7 +240,8 @@ Mesh *copy_mesh(Mesh *me)
men->mface= MEM_dupallocN(me->mface);
men->tface= MEM_dupallocN(me->tface);
men->dface= NULL;
men->mselect= NULL;
if (me->dvert){
men->dvert = MEM_mallocN (sizeof (MDeformVert)*me->totvert, "MDeformVert");
copy_dverts(men->dvert, me->dvert, me->totvert);