diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-10-03 03:20:55 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-10-03 03:20:55 +0300 |
commit | 6a4bed75b2cb945ab1441941fe24ecb99c7456db (patch) | |
tree | 92c370ae79419f1f45403bd4e4d70162e9714098 /source/blender/makesrna/intern/rna_curve.c | |
parent | 2de21113b945d1b0a1ffa7c3c0e6b62a95482e05 (diff) |
RNA: Make various .add(count) a required arg
Diffstat (limited to 'source/blender/makesrna/intern/rna_curve.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_curve.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_curve.c b/source/blender/makesrna/intern/rna_curve.c index 690e868f4af..cc1dc5e17b9 100644 --- a/source/blender/makesrna/intern/rna_curve.c +++ b/source/blender/makesrna/intern/rna_curve.c @@ -1273,7 +1273,7 @@ static void rna_def_curve_spline_bezpoints(BlenderRNA *brna, PropertyRNA *cprop) /*PropertyRNA *prop; */ FunctionRNA *func; - /*PropertyRNA *parm; */ + PropertyRNA *parm; RNA_def_property_srna(cprop, "SplineBezierPoints"); srna = RNA_def_struct(brna, "SplineBezierPoints", NULL); @@ -1283,7 +1283,8 @@ static void rna_def_curve_spline_bezpoints(BlenderRNA *brna, PropertyRNA *cprop) func = RNA_def_function(srna, "add", "rna_Curve_spline_bezpoints_add"); RNA_def_function_ui_description(func, "Add a number of points to this spline"); RNA_def_function_flag(func, FUNC_USE_SELF_ID | FUNC_USE_REPORTS); - RNA_def_int(func, "count", 1, 0, INT_MAX, "Number", "Number of points to add to the spline", 0, INT_MAX); + parm = RNA_def_int(func, "count", 1, 0, INT_MAX, "Number", "Number of points to add to the spline", 0, INT_MAX); + RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); #if 0 func = RNA_def_function(srna, "remove", "rna_Curve_spline_remove"); |