Fix #35902: build navigation mesh crash with multiple meshes selected.

This commit is contained in:
Brecht Van Lommel
2013-06-28 14:15:14 +00:00
parent c57d9cc44b
commit a7e7b69a65

View File

@@ -384,7 +384,8 @@ static Object *createRepresentation(bContext *C, struct recast_polyMesh *pmesh,
BM_vert_create(em->bm, co, NULL, 0);
}
EDBM_index_arrays_ensure(em, BM_VERT);
/* need to rebuild entirely because array size changes */
EDBM_index_arrays_init(em, BM_VERT);
/* create faces */
for (j = 0; j < trinum; j++) {