[Bf-blender-cvs] [b49a398baaa] blender2.8: Fix T58213: Crash w/ Vertex paint average

Campbell Barton noreply at git.blender.org
Thu Nov 29 23:30:24 CET 2018


Commit: b49a398baaa3b09348d55a16de711f09e48388dc
Author: Campbell Barton
Date:   Fri Nov 30 09:29:30 2018 +1100
Branches: blender2.8
https://developer.blender.org/rBb49a398baaa3b09348d55a16de711f09e48388dc

Fix T58213: Crash w/ Vertex paint average

===================================================================

M	source/blender/editors/sculpt_paint/paint_vertex.c

===================================================================

diff --git a/source/blender/editors/sculpt_paint/paint_vertex.c b/source/blender/editors/sculpt_paint/paint_vertex.c
index 9d078d4fea2..a00ad59ce7a 100644
--- a/source/blender/editors/sculpt_paint/paint_vertex.c
+++ b/source/blender/editors/sculpt_paint/paint_vertex.c
@@ -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);
 	}



More information about the Bf-blender-cvs mailing list