diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-10-03 02:08:54 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-10-03 02:08:54 +0300 |
commit | 2de21113b945d1b0a1ffa7c3c0e6b62a95482e05 (patch) | |
tree | 467249109ddb32db4ad28245548b0cfc8e391e5f /source/blender/makesrna/intern | |
parent | 2d3790194155ef2e7f691d294e01b8613179fb8d (diff) |
RNA: curve points add(count) a required arg
Diffstat (limited to 'source/blender/makesrna/intern')
-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 6020899ede7..690e868f4af 100644 --- a/source/blender/makesrna/intern/rna_curve.c +++ b/source/blender/makesrna/intern/rna_curve.c @@ -1244,7 +1244,7 @@ static void rna_def_curve_spline_points(BlenderRNA *brna, PropertyRNA *cprop) /*PropertyRNA *prop; */ FunctionRNA *func; - /*PropertyRNA *parm; */ + PropertyRNA *parm; RNA_def_property_srna(cprop, "SplinePoints"); srna = RNA_def_struct(brna, "SplinePoints", NULL); @@ -1254,7 +1254,8 @@ static void rna_def_curve_spline_points(BlenderRNA *brna, PropertyRNA *cprop) func = RNA_def_function(srna, "add", "rna_Curve_spline_points_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"); |