From 945098ebd6404043213a23b3dfba1ee8fe44af0a Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 7 Aug 2023 15:55:26 +0200 Subject: [PATCH] Fix #109201: Consistent mapping boundaries of brush textures This fix makes it so the circular brush is fitted into the square texture. This seems to be the most straightforward way to resolve confusion of the inter-dependencies between different brush and texture options. --- source/blender/editors/sculpt_paint/sculpt.cc | 8 -------- 1 file changed, 8 deletions(-) diff --git a/source/blender/editors/sculpt_paint/sculpt.cc b/source/blender/editors/sculpt_paint/sculpt.cc index c189f06a714..56fe2e71afc 100644 --- a/source/blender/editors/sculpt_paint/sculpt.cc +++ b/source/blender/editors/sculpt_paint/sculpt.cc @@ -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); -- 2.30.2