Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2022-05-05 13:11:50 +0300
committerJacques Lucke <jacques@blender.org>2022-05-05 13:11:50 +0300
commitdbba5c4df973a0120ed9ed115cd9044b2f1d24a5 (patch)
treea3ad2b032626204fd903577017d5a38894947b42 /source/blender/makesdna/DNA_brush_types.h
parentb4fa74e812939fdfbcb430013b63020257cdac27 (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/makesdna/DNA_brush_types.h')
-rw-r--r--source/blender/makesdna/DNA_brush_types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_brush_types.h b/source/blender/makesdna/DNA_brush_types.h
index 7d230b7d7a3..24e77ecf87f 100644
--- a/source/blender/makesdna/DNA_brush_types.h
+++ b/source/blender/makesdna/DNA_brush_types.h
@@ -140,6 +140,8 @@ typedef struct BrushGpencilSettings {
typedef struct BrushCurvesSculptSettings {
/** Number of curves added by the add brush. */
int add_amount;
+ /** Number of control points in new curves added by the add brush. */
+ int points_per_curve;
/* eBrushCurvesSculptFlag. */
uint32_t flag;
/** When shrinking curves, they shouldn't become shorter than this length. */