[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [31724] trunk/blender/source/blender/ editors/curve/editcurve.c: revert own commit which changed weight range, the set weight operator is for the goal weight, not the nurbs weight.
Campbell Barton
ideasman42 at gmail.com
Thu Sep 2 12:56:51 CEST 2010
Revision: 31724
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=31724
Author: campbellbarton
Date: 2010-09-02 12:56:50 +0200 (Thu, 02 Sep 2010)
Log Message:
-----------
revert own commit which changed weight range, the set weight operator is for the goal weight, not the nurbs weight.
Modified Paths:
--------------
trunk/blender/source/blender/editors/curve/editcurve.c
Modified: trunk/blender/source/blender/editors/curve/editcurve.c
===================================================================
--- trunk/blender/source/blender/editors/curve/editcurve.c 2010-09-02 10:26:19 UTC (rev 31723)
+++ trunk/blender/source/blender/editors/curve/editcurve.c 2010-09-02 10:56:50 UTC (rev 31724)
@@ -1804,7 +1804,7 @@
/****************** 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 @@
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 @@
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 ******************/
More information about the Bf-blender-cvs
mailing list