diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-11-17 15:59:59 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-11-17 15:59:59 +0300 |
commit | 7bd944795fbf3b39d2472c3797fb6bd1c6acc006 (patch) | |
tree | 1a8457b69c2373d3009f33c29970acafc257f4ea /source/blender/makesrna | |
parent | 17aa5ae7967ae2a9a9c6f6eb57576f62ce94ee6f (diff) |
fix [#24762] Bezier Point Radius Cannot be Set When Curve is Created
this could be set in 2.4x, no reason to be readonly.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_curve.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/makesrna/intern/rna_curve.c b/source/blender/makesrna/intern/rna_curve.c index 11037a0b078..efb94e4d19d 100644 --- a/source/blender/makesrna/intern/rna_curve.c +++ b/source/blender/makesrna/intern/rna_curve.c @@ -691,8 +691,7 @@ static void rna_def_bpoint(BlenderRNA *brna) prop= RNA_def_property(srna, "radius", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "radius"); - /*RNA_def_property_range(prop, 0.0f, 1.0f);*/ - RNA_def_property_clear_flag(prop, PROP_EDITABLE); + RNA_def_property_range(prop, 0.0f, FLT_MAX); RNA_def_property_ui_text(prop, "Bevel Radius", "Radius for bevelling"); RNA_def_property_update(prop, 0, "rna_Curve_update_data"); @@ -775,8 +774,7 @@ static void rna_def_beztriple(BlenderRNA *brna) prop= RNA_def_property(srna, "radius", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "radius"); - /*RNA_def_property_range(prop, 0.0f, 1.0f);*/ - RNA_def_property_clear_flag(prop, PROP_EDITABLE); + RNA_def_property_range(prop, 0.0f, FLT_MAX); RNA_def_property_ui_text(prop, "Bevel Radius", "Radius for bevelling"); RNA_def_property_update(prop, 0, "rna_Curve_update_data"); |