Fix update issue in VPaint mode.

Need to flush the changes through DEG CoW, otherwise drawing code would
not see them in some cases...
This commit is contained in:
Bastien Montagne
2018-06-06 12:39:49 +02:00
parent e3324c3a8e
commit 528cdf9b50

View File

@@ -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)