fix [#27096] Segmentation Fault trying to export DirectX with specific model

copying a mesh in editmode didnt NULL the edit_mesh pointer.
This commit is contained in:
Campbell Barton
2011-04-21 09:03:04 +00:00
parent cb06c4eee1
commit 62a02764ab
2 changed files with 2 additions and 1 deletions

View File

@@ -236,6 +236,8 @@ Mesh *copy_mesh(Mesh *me)
}
men->mselect= NULL;
men->edit_mesh= NULL;
men->pv= NULL; /* looks like this is no-longer supported but NULL just incase */
men->bb= MEM_dupallocN(men->bb);

View File

@@ -264,7 +264,6 @@ static void psys_create_frand(ParticleSystem *psys)
int psys_check_enabled(Object *ob, ParticleSystem *psys)
{
ParticleSystemModifierData *psmd;
Mesh *me;
if(psys->flag & PSYS_DISABLED || psys->flag & PSYS_DELETE || !psys->part)
return 0;