[Bf-blender-cvs] [688c4f7e519] master: Sculpt: fix stroke-only attributes not being freed at stroke end
Joseph Eagar
noreply at git.blender.org
Thu Sep 29 22:45:56 CEST 2022
Commit: 688c4f7e5198c1ab7c14c01a1dc69ec08f3be073
Author: Joseph Eagar
Date: Thu Sep 29 13:45:17 2022 -0700
Branches: master
https://developer.blender.org/rB688c4f7e5198c1ab7c14c01a1dc69ec08f3be073
Sculpt: fix stroke-only attributes not being freed at stroke end
===================================================================
M source/blender/editors/sculpt_paint/sculpt.c
===================================================================
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);
More information about the Bf-blender-cvs
mailing list