Fix T58213: Crash w/ Vertex paint average

This commit is contained in:
Campbell Barton 2018-11-30 09:29:30 +11:00
parent f81aeac2bc
commit b49a398baa
Notes: blender-bot 2023-06-12 00:52:52 +02:00
Referenced by issue #58213, Vertex paint mode, tool avarge.
1 changed files with 1 additions and 1 deletions

View File

@ -3170,7 +3170,7 @@ static void vpaint_stroke_update_step(bContext *C, struct PaintStroke *stroke, P
BKE_mesh_batch_cache_dirty_tag(ob->data, BKE_MESH_BATCH_DIRTY_ALL);
if (vp->paint.brush->vertexpaint_tool == PAINT_TOOL_SMEAR) {
if (vp->paint.brush->vertexpaint_tool == VPAINT_TOOL_SMEAR) {
memcpy(vpd->smear.color_prev, vpd->smear.color_curr, sizeof(uint) * ((Mesh *)ob->data)->totloop);
}