Fix #109201: Consistent mapping boundaries of brush textures #110896
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user