Fix T98698: Division by zero in smear code when strength is zero
This commit is contained in:
parent
c5d3846b10
commit
a720a4aabb
Notes:
blender-bot
2023-02-14 10:54:29 +01:00
Referenced by issue #98698, Blender 3.2.0 - Sculpt's Smear Brush at 0 strength creates black attribute color Referenced by issue #98661, 3.2: Potential candidates for corrective releases
|
@ -532,7 +532,7 @@ void SCULPT_do_smear_brush(Sculpt *sd, Object *ob, PBVHNode **nodes, int totnode
|
|||
Brush *brush = BKE_paint_brush(&sd->paint);
|
||||
SculptSession *ss = ob->sculpt;
|
||||
|
||||
if (!SCULPT_has_colors(ss)) {
|
||||
if (!SCULPT_has_colors(ss) || ss->cache->bstrength == 0.0f) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue