diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-06-06 19:09:41 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-06-06 19:09:41 +0300 |
commit | 60621940d0df5a28a2b93d69981f54c000e54044 (patch) | |
tree | 547857d81e9846073ffbabba93a3aff06643637e /source | |
parent | 4ee2ae97c3942cd2d0347ab526cdaa5d21e16bea (diff) |
Use threshold for selecting side-of-axis
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/mesh/editmesh_select.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/editmesh_select.c b/source/blender/editors/mesh/editmesh_select.c index 81f78307224..4920a5af41b 100644 --- a/source/blender/editors/mesh/editmesh_select.c +++ b/source/blender/editors/mesh/editmesh_select.c @@ -3680,7 +3680,7 @@ static int edbm_select_axis_exec(bContext *C, wmOperator *op) else { BMVert *v; BMIter iter; - const float limit = CTX_data_tool_settings(C)->doublimit; // XXX + const float limit = RNA_float_get(op->ptr, "threshold"); float value = v_act->co[axis]; if (mode == 0) @@ -3745,6 +3745,7 @@ void MESH_OT_select_axis(wmOperatorType *ot) /* properties */ RNA_def_enum(ot->srna, "mode", axis_mode_items, 0, "Axis Mode", "Axis side to use when selecting"); RNA_def_enum(ot->srna, "axis", axis_items_xyz, 0, "Axis", "Select the axis to compare each vertex on"); + RNA_def_float(ot->srna, "threshold", 0.0001f, 0.000001f, 50.0f, "Threshold", "", 0.00001, 10.0); } |