diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index 148f5bf8799..e527fbfb40e 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -2358,6 +2358,9 @@ float SCULPT_brush_strength_factor(SculptSession *ss, if (p < hardness) { final_len = 0.0f; } + else if (hardness == 1.0f) { + final_len = cache->radius; + } else { p = (p - hardness) / (1.0f - hardness); final_len = p * cache->radius; |