diff --git a/source/blender/src/buttons_editing.c b/source/blender/src/buttons_editing.c index c5cb7873bbe..e46bb72f154 100644 --- a/source/blender/src/buttons_editing.c +++ b/source/blender/src/buttons_editing.c @@ -3994,7 +3994,6 @@ void do_fpaintbuts(unsigned short event) clear_vpaint_selectedfaces(); else clear_vpaint(); - DAG_object_flush_update(G.scene, ob, OB_RECALC_DATA); break; case B_REDR_3D_IMA: allqueue(REDRAWVIEW3D, 0); diff --git a/source/blender/src/vpaint.c b/source/blender/src/vpaint.c index cf4c5e9b9fc..b3c3a45410c 100644 --- a/source/blender/src/vpaint.c +++ b/source/blender/src/vpaint.c @@ -352,7 +352,9 @@ void clear_vpaint_selectedfaces() tf[i].col[3] = paintcol; } } + BIF_undo_push("Clear vertex colors"); + DAG_object_flush_update(G.scene, ob, OB_RECALC_DATA); allqueue(REDRAWVIEW3D, 0); }