Edit Mesh: don't recalc all meshes w/ extrude

This commit is contained in:
Campbell Barton 2018-04-25 13:05:19 +02:00
parent 9e3e648a08
commit fe149da993
1 changed files with 4 additions and 1 deletions

View File

@ -408,12 +408,15 @@ static int edbm_extrude_region_exec(bContext *C, wmOperator *op)
ViewLayer *view_layer = CTX_data_view_layer(C);
uint objects_len = 0;
Object **objects = BKE_view_layer_array_from_objects_in_edit_mode_unique_data(view_layer, &objects_len);
for (uint ob_index = 0; ob_index < objects_len; ob_index++) {
Object *obedit = objects[ob_index];
BMEditMesh *em = BKE_editmesh_from_object(obedit);
if (em->bm->totvertsel == 0) {
continue;
}
edbm_extrude_mesh(obedit, em, op);
/* This normally happens when pushing undo but modal operators
* like this one don't push undo data until after modal mode is
* done.*/