From 4c3b984b3daa58e25e77864fc430917d4448ce71 Mon Sep 17 00:00:00 2001 From: Joseph Eagar Date: Sun, 26 Jun 2022 16:13:09 -0700 Subject: Fix T99100: Undo/redo bugs with paint and gravity You can now push multiple sculpt undo nodes of different types. This is necassary to handle paint tools that have gravity enabled. --- source/blender/editors/sculpt_paint/sculpt_paint_color.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/sculpt_paint/sculpt_paint_color.c') diff --git a/source/blender/editors/sculpt_paint/sculpt_paint_color.c b/source/blender/editors/sculpt_paint/sculpt_paint_color.c index fa9f24377da..2ac0dbdb9d4 100644 --- a/source/blender/editors/sculpt_paint/sculpt_paint_color.c +++ b/source/blender/editors/sculpt_paint/sculpt_paint_color.c @@ -111,7 +111,7 @@ static void do_paint_brush_task_cb_ex(void *__restrict userdata, PBVHColorBufferNode *color_buffer; SculptOrigVertData orig_data; - SCULPT_orig_vert_data_init(&orig_data, data->ob, data->nodes[n]); + SCULPT_orig_vert_data_init(&orig_data, data->ob, data->nodes[n], SCULPT_UNDO_COLOR); color_buffer = BKE_pbvh_node_color_buffer_get(data->nodes[n]); -- cgit v1.2.3