[Bf-blender-cvs] [6062194] master: Use threshold for selecting side-of-axis

Campbell Barton noreply at git.blender.org
Sat Jun 6 18:11:00 CEST 2015


Commit: 60621940d0df5a28a2b93d69981f54c000e54044
Author: Campbell Barton
Date:   Sun Jun 7 02:09:41 2015 +1000
Branches: master
https://developer.blender.org/rB60621940d0df5a28a2b93d69981f54c000e54044

Use threshold for selecting side-of-axis

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

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

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

diff --git a/source/blender/editors/mesh/editmesh_select.c b/source/blender/editors/mesh/editmesh_select.c
index 81f7830..4920a5a 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);
 }




More information about the Bf-blender-cvs mailing list