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>2018-09-10 09:24:38 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-09-10 09:24:38 +0300
commit5b39b83af41ce7d93b39d39b0f1fea0f38090dde (patch)
treed47f44a5e88830f3d2972ce67af16ec4005a49d4 /source/blender/editors/mesh/editmesh_polybuild.c
parenta4d126cac655aed5e3e8caff645109e781f441b2 (diff)
Poly Build: set newly added elements active
Diffstat (limited to 'source/blender/editors/mesh/editmesh_polybuild.c')
-rw-r--r--source/blender/editors/mesh/editmesh_polybuild.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/mesh/editmesh_polybuild.c b/source/blender/editors/mesh/editmesh_polybuild.c
index e818659e61a..617242fa801 100644
--- a/source/blender/editors/mesh/editmesh_polybuild.c
+++ b/source/blender/editors/mesh/editmesh_polybuild.c
@@ -196,6 +196,7 @@ static int edbm_polybuild_face_at_cursor_invoke(
BMVert *v_new = BM_vert_create(bm, center, NULL, BM_CREATE_NOP);
edbm_flag_disable_all_multi(vc.view_layer, BM_ELEM_SELECT);
BM_vert_select_set(bm, v_new, true);
+ BM_select_history_store(bm, v_new);
changed = true;
}
else if (ele_act->head.htype == BM_EDGE) {
@@ -219,6 +220,7 @@ static int edbm_polybuild_face_at_cursor_invoke(
edbm_flag_disable_all_multi(vc.view_layer, BM_ELEM_SELECT);
BM_vert_select_set(bm, v_tri[2], true);
+ BM_select_history_store(bm, v_tri[2]);
changed = true;
}
else if (ele_act->head.htype == BM_VERT) {
@@ -270,6 +272,7 @@ static int edbm_polybuild_face_at_cursor_invoke(
edbm_flag_disable_all_multi(vc.view_layer, BM_ELEM_SELECT);
BM_vert_select_set(bm, v_quad[2], true);
+ BM_select_history_store(bm, v_quad[2]);
changed = true;
}
else {
@@ -283,6 +286,8 @@ static int edbm_polybuild_face_at_cursor_invoke(
BM_edge_create(bm, v_act, v_new, NULL, BM_CREATE_NOP);
BM_vert_select_set(bm, v_new, true);
+ BM_select_history_store(bm, v_new);
+ changed = true;
}
}
@@ -361,6 +366,7 @@ static int edbm_polybuild_split_at_cursor_invoke(
edbm_flag_disable_all_multi(vc.view_layer, BM_ELEM_SELECT);
BM_vert_select_set(bm, v_new, true);
+ BM_select_history_store(bm, v_new);
changed = true;
}
else if (ele_act->head.htype == BM_VERT) {