[Bf-blender-cvs] [5b39b83af41] blender2.8: Poly Build: set newly added elements active

Campbell Barton noreply at git.blender.org
Mon Sep 10 08:14:32 CEST 2018


Commit: 5b39b83af41ce7d93b39d39b0f1fea0f38090dde
Author: Campbell Barton
Date:   Mon Sep 10 16:24:38 2018 +1000
Branches: blender2.8
https://developer.blender.org/rB5b39b83af41ce7d93b39d39b0f1fea0f38090dde

Poly Build: set newly added elements active

===================================================================

M	source/blender/editors/mesh/editmesh_polybuild.c

===================================================================

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) {



More information about the Bf-blender-cvs mailing list