Fix #109201: Consistent mapping boundaries of brush textures #110896

Merged
Sergey Sharybin merged 1 commits from Sergey/blender:fix_109201 into main 2023-08-09 11:40:05 +02:00

View File

@ -3007,14 +3007,6 @@ static void calc_brush_local_mat(const float rotation,
/* Scale by brush radius. */
float radius = cache->radius;
/* Square tips should scale by square root of 2. */
if (BKE_brush_has_cube_tip(cache->brush, PAINT_MODE_SCULPT)) {
radius += (radius / M_SQRT2 - radius) * cache->brush->tip_roundness;
}
else {
radius /= M_SQRT2;
}
normalize_m4(mat);
scale_m4_fl(scale, radius);
mul_m4_m4m4(tmat, mat, scale);