Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Eagar <joeedh@gmail.com>2022-09-29 23:45:17 +0300
committerJeroen Bakker <jeroen@blender.org>2022-10-03 15:59:17 +0300
commit6a01db01c2d2e6e419e89e361efc9a58e235397f (patch)
tree3b4c54cd3cb9a8bc2aa20c0ccfb858cd7407e4d0
parentcb6a8318d1b4e16494c0f31c9ac8d425308b9a21 (diff)
Sculpt: fix stroke-only attributes not being freed at stroke end
-rw-r--r--source/blender/editors/sculpt_paint/sculpt.c3
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 344214e2799..3725e264236 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -5595,6 +5595,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);