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:
authorCampbell Barton <ideasman42@gmail.com>2015-12-28 13:26:02 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-12-28 13:26:02 +0300
commitc6e835346259d6289edbd875fb19907e246d215d (patch)
tree5d19a077bf7a98f90ae40e2edc33207eefc08fea /source/blender/editors/mesh/editmesh_path.c
parent641d4e2b7fc4fd563c3c2dd880c8c412dd35ce9a (diff)
Fix possible invalid-index use /w link/path select
Diffstat (limited to 'source/blender/editors/mesh/editmesh_path.c')
-rw-r--r--source/blender/editors/mesh/editmesh_path.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/mesh/editmesh_path.c b/source/blender/editors/mesh/editmesh_path.c
index e28b3ce3ca8..0adf19337e0 100644
--- a/source/blender/editors/mesh/editmesh_path.c
+++ b/source/blender/editors/mesh/editmesh_path.c
@@ -572,6 +572,7 @@ static int edbm_shortest_path_pick_invoke(bContext *C, wmOperator *op, const wmE
}
/* to support redo */
+ BM_mesh_elem_index_ensure(em->bm, ele_dst->head.htype);
int index = EDBM_elem_to_index_any(em, ele_dst);
RNA_int_set(op->ptr, "index", index);