Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-06-28 18:15:14 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-06-28 18:15:14 +0400
commita7e7b69a65b192bdf6f9a8406a2f2485218c0688 (patch)
treecb2f536f8ef07adca8027113a9325dc30ef88300 /source/blender/editors/mesh/mesh_navmesh.c
parentc57d9cc44bc1eb8e0c595d80a672b0413119f332 (diff)
Fix #35902: build navigation mesh crash with multiple meshes selected.
Diffstat (limited to 'source/blender/editors/mesh/mesh_navmesh.c')
-rw-r--r--source/blender/editors/mesh/mesh_navmesh.c3
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++) {