forked from bartvdbraak/blender
Bugfix #5154
Mesh->mselect (the selection storage) didn't get zero'ed on duplicate, potentially causing crashes. Bad!
This commit is contained in:
parent
916ea9b6d3
commit
8e862a22ea
@ -240,7 +240,8 @@ Mesh *copy_mesh(Mesh *me)
|
|||||||
men->mface= MEM_dupallocN(me->mface);
|
men->mface= MEM_dupallocN(me->mface);
|
||||||
men->tface= MEM_dupallocN(me->tface);
|
men->tface= MEM_dupallocN(me->tface);
|
||||||
men->dface= NULL;
|
men->dface= NULL;
|
||||||
|
men->mselect= NULL;
|
||||||
|
|
||||||
if (me->dvert){
|
if (me->dvert){
|
||||||
men->dvert = MEM_mallocN (sizeof (MDeformVert)*me->totvert, "MDeformVert");
|
men->dvert = MEM_mallocN (sizeof (MDeformVert)*me->totvert, "MDeformVert");
|
||||||
copy_dverts(men->dvert, me->dvert, me->totvert);
|
copy_dverts(men->dvert, me->dvert, me->totvert);
|
||||||
|
Loading…
Reference in New Issue
Block a user