Merge branch 'blender-v3.3-release'

This commit is contained in:
Campbell Barton 2022-08-12 21:51:16 +10:00
commit f4aec3719f
1 changed files with 4 additions and 2 deletions

View File

@ -2512,8 +2512,10 @@ struct ImBuf *BKE_brush_gen_radial_control_imbuf(Brush *br, bool secondary, bool
if (display_gradient || have_texture) {
for (int i = 0; i < side; i++) {
for (int j = 0; j < side; j++) {
float magn = sqrtf(pow2f(i - half) + pow2f(j - half));
im->rect_float[i * side + j] *= BKE_brush_curve_strength_clamped(br, magn, half);
const float magn = sqrtf(pow2f(i - half) + pow2f(j - half));
const float strength = BKE_brush_curve_strength_clamped(br, magn, half);
im->rect_float[i * side + j] = (have_texture) ? im->rect_float[i * side + j] * strength :
strength;
}
}
}