From 688c4f7e5198c1ab7c14c01a1dc69ec08f3be073 Mon Sep 17 00:00:00 2001 From: Joseph Eagar Date: Thu, 29 Sep 2022 13:45:17 -0700 Subject: Sculpt: fix stroke-only attributes not being freed at stroke end --- source/blender/editors/sculpt_paint/sculpt.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source') diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index 7fc5df8237a..3ac0dac137b 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -5557,6 +5557,9 @@ static void sculpt_stroke_done(const bContext *C, struct PaintStroke *UNUSED(str if (SCULPT_use_image_paint_brush(&tool_settings->paint_mode, ob)) { SCULPT_flush_update_done(C, ob, SCULPT_UPDATE_IMAGE); } + else { + BKE_sculpt_attributes_destroy_temporary_stroke(ob); + } } else { SCULPT_flush_update_done(C, ob, SCULPT_UPDATE_COORDS); -- cgit v1.2.3