diff options
author | Jacques Lucke <jacques@blender.org> | 2022-05-05 13:11:50 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-05-05 13:11:50 +0300 |
commit | dbba5c4df973a0120ed9ed115cd9044b2f1d24a5 (patch) | |
tree | a3ad2b032626204fd903577017d5a38894947b42 /source/blender/makesrna | |
parent | b4fa74e812939fdfbcb430013b63020257cdac27 (diff) |
Curves: control number of control points in new curves
Previously, the number of control points in a new curve was hardcoded.
Differential Revision: https://developer.blender.org/D14857
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_brush.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_brush.c b/source/blender/makesrna/intern/rna_brush.c index c42cbdbbb56..f7edba24dea 100644 --- a/source/blender/makesrna/intern/rna_brush.c +++ b/source/blender/makesrna/intern/rna_brush.c @@ -1953,6 +1953,11 @@ static void rna_def_curves_sculpt_options(BlenderRNA *brna) RNA_def_property_range(prop, 1, INT32_MAX); RNA_def_property_ui_text(prop, "Add Amount", "Number of curves added by the Add brush"); + prop = RNA_def_property(srna, "points_per_curve", PROP_INT, PROP_NONE); + RNA_def_property_range(prop, 2, INT32_MAX); + RNA_def_property_ui_text( + prop, "Points per Curve", "Number of control points in a newly added curve"); + prop = RNA_def_property(srna, "scale_uniform", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "flag", BRUSH_CURVES_SCULPT_FLAG_SCALE_UNIFORM); RNA_def_property_ui_text(prop, |