Fix T70324: Layer Brush has bad behaviours and create artifacts
Reviewed By: brecht Maniphest Tasks: T70324 Differential Revision: https://developer.blender.org/D5934
This commit is contained in:
parent
fb62c578bc
commit
29f25da769
Notes:
blender-bot
2023-02-14 00:39:29 +01:00
Referenced by issue #70324, Sculpt Mode - Layer Brush has bad behaviours and create artifacts
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue