[Bf-blender-cvs] [528cdf9b504] blender2.8: Fix update issue in VPaint mode.

Bastien Montagne noreply at git.blender.org
Wed Jun 6 12:42:08 CEST 2018


Commit: 528cdf9b504d9d42dadc8a70464026101d29803f
Author: Bastien Montagne
Date:   Wed Jun 6 12:39:49 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB528cdf9b504d9d42dadc8a70464026101d29803f

Fix update issue in VPaint mode.

Need to flush the changes through DEG CoW, otherwise drawing code would
not see them in some cases...

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

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 a6b5ae1af29..52c096b712e 100644
--- a/source/blender/editors/sculpt_paint/paint_vertex.c
+++ b/source/blender/editors/sculpt_paint/paint_vertex.c
@@ -3143,6 +3143,10 @@ static void vpaint_stroke_update_step(bContext *C, struct PaintStroke *stroke, P
 		 * avoid this if we can! */
 		DEG_id_tag_update(ob->data, 0);
 	}
+	else {
+		/* Flush changes through DEG. */
+		DEG_id_tag_update(ob->data, DEG_TAG_COPY_ON_WRITE);
+	}
 }
 
 static void vpaint_stroke_done(const bContext *C, struct PaintStroke *stroke)



More information about the Bf-blender-cvs mailing list