diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-08-31 21:53:07 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-08-31 21:53:07 +0300 |
commit | b0c146a9eba941befb9eb60b079f4ac80bfbe6b2 (patch) | |
tree | dd067172520353d404216476dc14f2acf869c57b /source/blender/editors/mesh | |
parent | 7f9768cb80e5f1813a531a5acf41e0d7891683a6 (diff) |
MESH_OT_symmetrize: Cleanup, get op->ptr props outside objects loop
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r-- | source/blender/editors/mesh/editmesh_tools.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c index 2d21ec86205..cc17a6c86df 100644 --- a/source/blender/editors/mesh/editmesh_tools.c +++ b/source/blender/editors/mesh/editmesh_tools.c @@ -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"); + BMOperator bmop; EDBM_op_init( em, &bmop, op, "symmetrize input=%hvef direction=%i dist=%f", |