diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-06-28 18:15:14 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-06-28 18:15:14 +0400 |
commit | a7e7b69a65b192bdf6f9a8406a2f2485218c0688 (patch) | |
tree | cb2f536f8ef07adca8027113a9325dc30ef88300 | |
parent | c57d9cc44bc1eb8e0c595d80a672b0413119f332 (diff) |
Fix #35902: build navigation mesh crash with multiple meshes selected.
-rw-r--r-- | source/blender/editors/mesh/mesh_navmesh.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/mesh_navmesh.c b/source/blender/editors/mesh/mesh_navmesh.c index ba9bd8d3f7b..3d8718ef887 100644 --- a/source/blender/editors/mesh/mesh_navmesh.c +++ b/source/blender/editors/mesh/mesh_navmesh.c @@ -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++) { |