diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2019-11-17 03:09:08 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2019-11-21 20:41:58 +0300 |
commit | 186bd1759f05c71c5c44391a5925b0f43cbd3383 (patch) | |
tree | 56b8abcb5e985375769cea8a7df1ca711ff631f8 /source/blender/makesdna | |
parent | 470fe59f7e87fc01c9ff86a65c591ea9833ba1aa (diff) |
Pose brush: Smooth Iterations Brush Property
The smooth iterations of the pose factor were hardcoded to 4. This works fine in most situations when you are posing a low poly mesh, which is the main use case of this tool. I added the smooth iterations as a brush property in case you need to pose a high poly mesh directly without producing artifacts.
Reviewed By: jbakker
Differential Revision: https://developer.blender.org/D6157
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_brush_defaults.h | 1 | ||||
-rw-r--r-- | source/blender/makesdna/DNA_brush_types.h | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_brush_defaults.h b/source/blender/makesdna/DNA_brush_defaults.h index ff1f8c9a1c0..9d3689ce4ee 100644 --- a/source/blender/makesdna/DNA_brush_defaults.h +++ b/source/blender/makesdna/DNA_brush_defaults.h @@ -95,6 +95,7 @@ \ /* sculpting defaults to the draw tool for new brushes */ \ .sculpt_tool = SCULPT_TOOL_DRAW, \ + .pose_smooth_iterations = 4, \ \ /* A kernel radius of 1 has almost no effect (T63233). */ \ .blur_kernel_radius = 2, \ diff --git a/source/blender/makesdna/DNA_brush_types.h b/source/blender/makesdna/DNA_brush_types.h index c55ab81a733..a7e15ac9547 100644 --- a/source/blender/makesdna/DNA_brush_types.h +++ b/source/blender/makesdna/DNA_brush_types.h @@ -334,6 +334,9 @@ typedef struct Brush { /* pose */ float pose_offset; + int pose_smooth_iterations; + + char _pad2[4]; /* multiplane scrape */ float multiplane_scrape_angle; |