diff options
author | Joseph Eagar <joeedh@gmail.com> | 2022-09-29 23:45:17 +0300 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2022-09-29 23:45:17 +0300 |
commit | 688c4f7e5198c1ab7c14c01a1dc69ec08f3be073 (patch) | |
tree | a350d833c85bf943c8a451d6869e046d36d77b3f /source/blender | |
parent | b063cfa9cf9d5c5b486311ef5515a144f1ad36f4 (diff) |
Sculpt: fix stroke-only attributes not being freed at stroke end
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |