diff options
author | Jacques Lucke <jacques@blender.org> | 2022-03-02 19:15:44 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-03-02 19:15:44 +0300 |
commit | ac45540a348ec8662e4e27002c64176c402fe549 (patch) | |
tree | 505778f4634aadd248f1c499fad72f28394b0780 /source/blender/makesdna | |
parent | 037e1ad140d5c0b57d54f64e32a00f7961b7cc17 (diff) |
Curves: add brush to add curves on surface
This adds a prototype for the first brush that can add new curves by
painting on a surface. Note that this can only be used when the curves
object has a surface object set in the properties panel.
The brush can take minimum distance into account. This allows
distributing curves with a somewhat consistent density.
Differential Revision: https://developer.blender.org/D14207
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_brush_enums.h | 1 | ||||
-rw-r--r-- | source/blender/makesdna/DNA_scene_types.h | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_brush_enums.h b/source/blender/makesdna/DNA_brush_enums.h index bca177f6d7a..88be670457a 100644 --- a/source/blender/makesdna/DNA_brush_enums.h +++ b/source/blender/makesdna/DNA_brush_enums.h @@ -459,6 +459,7 @@ typedef enum eBrushUVSculptTool { typedef enum eBrushCurvesSculptTool { CURVES_SCULPT_TOOL_TEST1 = 0, CURVES_SCULPT_TOOL_TEST2 = 1, + CURVES_SCULPT_TOOL_TEST3 = 2, } eBrushCurvesSculptTool; /** When #BRUSH_ACCUMULATE is used */ diff --git a/source/blender/makesdna/DNA_scene_types.h b/source/blender/makesdna/DNA_scene_types.h index daecb3d7a31..512be41ce2c 100644 --- a/source/blender/makesdna/DNA_scene_types.h +++ b/source/blender/makesdna/DNA_scene_types.h @@ -994,6 +994,9 @@ typedef struct Sculpt { typedef struct CurvesSculpt { Paint paint; + /** Minimum distance between newly added curves on a surface. */ + float distance; + char _pad1[4]; } CurvesSculpt; typedef struct UvSculpt { |