forked from bartvdbraak/blender
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:
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)
|
||||
|
Loading…
Reference in New Issue
Block a user