diff options
author | Jean Da Costa <jeacom256> | 2019-01-23 20:38:40 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-01-23 22:25:14 +0300 |
commit | b592e34559da82f86339e97b25ceac9f844719ab (patch) | |
tree | 0f6f0d9a04ccd8eb0551a8c0cdc5ad4b80c9996c /source/blender/makesdna/DNA_brush_types.h | |
parent | 4e9817a4fb2986b3d08da8380a6ce1d40c108970 (diff) |
Sculpt: add Topology Rake, to align edges along brush while painting.
This helps to generate cleaner topology and define sharp features for dynamic
topology. Best used on relatively low-poly meshes, it is not needed as much
for high detail areas and has a performance impact.
Differential Revision: https://developer.blender.org/D4189
Diffstat (limited to 'source/blender/makesdna/DNA_brush_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_brush_types.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_brush_types.h b/source/blender/makesdna/DNA_brush_types.h index c980fa79d40..a2721526cf5 100644 --- a/source/blender/makesdna/DNA_brush_types.h +++ b/source/blender/makesdna/DNA_brush_types.h @@ -272,10 +272,12 @@ typedef struct Brush { char mask_tool; /** Active grease pencil tool. */ char gpencil_tool; - char _pad0[6]; + char _pad0[2]; float autosmooth_factor; + float topology_rake_factor; + float crease_pinch_factor; float plane_trim; @@ -469,6 +471,14 @@ typedef enum eBrushSculptTool { SCULPT_TOOL_MASK \ ) == 0) +#define SCULPT_TOOL_HAS_TOPOLOGY_RAKE(t) (ELEM(t, \ + /* These brushes, as currently coded, cannot support topology rake. */ \ + SCULPT_TOOL_GRAB, \ + SCULPT_TOOL_ROTATE, \ + SCULPT_TOOL_THUMB, \ + SCULPT_TOOL_MASK \ + ) == 0) + /* ImagePaintSettings.tool */ typedef enum eBrushImagePaintTool { PAINT_TOOL_DRAW = 0, |