MESH_OT_symmetrize: Cleanup, get op->ptr props outside objects loop

This commit is contained in:
Dalai Felinto 2018-08-31 15:53:07 -03:00
parent 7f9768cb80
commit b0c146a9eb
1 changed files with 2 additions and 3 deletions

View File

@ -6650,6 +6650,7 @@ void MESH_OT_convex_hull(wmOperatorType *ot)
static int mesh_symmetrize_exec(bContext *C, wmOperator *op)
{
const float thresh = RNA_float_get(op->ptr, "threshold");
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);
@ -6661,10 +6662,8 @@ static int mesh_symmetrize_exec(bContext *C, wmOperator *op)
if (em->bm->totvertsel == 0 ) {
continue;
}
BMOperator bmop;
const float thresh = RNA_float_get(op->ptr, "threshold");
EDBM_op_init(
em, &bmop, op,
"symmetrize input=%hvef direction=%i dist=%f",