fix [#32294] Navmesh crashed if on creation navmesh is also selected

thanks to Sv. Lockal for investigating and providing the fix.
This commit is contained in:
Campbell Barton 2013-02-20 01:36:35 +00:00
parent c22e52f409
commit 7f8d597c79

@ -136,8 +136,10 @@ void EDBM_mesh_clear(BMEditMesh *em)
/* free tessellation data */
em->tottri = 0;
if (em->looptris)
if (em->looptris) {
MEM_freeN(em->looptris);
em->looptris = NULL;
}
}
void EDBM_stats_update(BMEditMesh *em)