diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2019-10-01 21:14:45 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2019-10-02 16:58:35 +0300 |
commit | 29f25da76924a59e82e5c01d9c54ff75943a1f1a (patch) | |
tree | 36c2bb989cd239a10ada69aa7cbc4f833f9e4859 /source | |
parent | fb62c578bc093e8ec2e6e3753d60919e6fb272e9 (diff) |
Fix T70324: Layer Brush has bad behaviours and create artifacts
Reviewed By: brecht
Maniphest Tasks: T70324
Differential Revision: https://developer.blender.org/D5934
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index 80be8143630..19eed2d4ec2 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -1429,7 +1429,10 @@ static void calc_area_normal_and_center_task_cb(void *__restrict userdata, /* Update the test radius to sample the normal using the normal radius of the brush */ if (data->brush->ob_mode == OB_MODE_SCULPT) { float test_radius = sqrtf(test.radius_squared); - test_radius *= data->brush->normal_radius_factor; + /* Layer brush produces artifacts with normal radius */ + if (!(ss->cache && data->brush->sculpt_tool == SCULPT_TOOL_LAYER)) { + test_radius *= data->brush->normal_radius_factor; + } test.radius_squared = test_radius * test_radius; } |