Fix T48838: Tiling sculpt problem with custom brush

This commit is contained in:
Sergey Sharybin 2016-07-28 14:00:44 +02:00
parent cba8e03672
commit f86aa6a879
Notes: blender-bot 2023-02-14 07:45:35 +01:00
Referenced by issue #48838, tiling sculpt problem with custom brush
1 changed files with 4 additions and 1 deletions

View File

@ -1239,7 +1239,7 @@ static float brush_strength(
/* Return a multiplier for brush strength on a particular vertex. */
static float tex_strength(SculptSession *ss, Brush *br,
const float point[3],
const float brush_point[3],
const float len,
const short vno[3],
const float fno[3],
@ -1251,6 +1251,9 @@ static float tex_strength(SculptSession *ss, Brush *br,
MTex *mtex = &br->mtex;
float avg = 1;
float rgba[4];
float point[3];
sub_v3_v3v3(point, brush_point, cache->plane_offset);
if (!mtex->tex) {
avg = 1;