Sculpt Expand: Fix gradient when using invert

This commit is contained in:
Pablo Dobarro 2021-02-07 17:59:15 +01:00
parent 2f2f14ffed
commit 35ac8cf4dc
1 changed files with 3 additions and 2 deletions

View File

@ -184,8 +184,9 @@ static float sculpt_expand_gradient_falloff_get(ExpandCache *expand_cache, const
if (expand_cache->invert) {
linear_falloff = (falloff_factor - active_factor) / (loop_len - active_factor);
}
linear_falloff = 1.0f - (falloff_factor / active_factor);
else {
linear_falloff = 1.0f - (falloff_factor / active_factor);
}
if (!expand_cache->brush_gradient) {
return linear_falloff;