From 4e9162cd63badf4bf5fb312e108ffbbc58ebd342 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 2 Sep 2010 10:56:50 +0000 Subject: [PATCH] revert own commit which changed weight range, the set weight operator is for the goal weight, not the nurbs weight. --- source/blender/editors/curve/editcurve.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/blender/editors/curve/editcurve.c b/source/blender/editors/curve/editcurve.c index e6bef11d433..fd76c9e9350 100644 --- a/source/blender/editors/curve/editcurve.c +++ b/source/blender/editors/curve/editcurve.c @@ -1804,7 +1804,7 @@ void CURVE_OT_switch_direction(wmOperatorType *ot) /****************** set weight operator *******************/ -static int set_weight_exec(bContext *C, wmOperator *op) +static int set_goal_weight_exec(bContext *C, wmOperator *op) { Object *obedit= CTX_data_edit_object(C); ListBase *editnurb= curve_get_editcurve(obedit); @@ -1842,7 +1842,7 @@ void CURVE_OT_spline_weight_set(wmOperatorType *ot) ot->idname= "CURVE_OT_spline_weight_set"; /* api callbacks */ - ot->exec= set_weight_exec; + ot->exec= set_goal_weight_exec; ot->invoke= WM_operator_props_popup; ot->poll= ED_operator_editsurfcurve; @@ -1850,7 +1850,7 @@ void CURVE_OT_spline_weight_set(wmOperatorType *ot) ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; /* properties */ - RNA_def_float_factor(ot->srna, "weight", 1.0f, 0.0f, 100.0f, "Weight", "", 0.0f, 100.0f); + RNA_def_float_factor(ot->srna, "weight", 1.0f, 0.0f, 1.0f, "Weight", "", 0.0f, 1.0f); } /******************* set radius operator ******************/