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:
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt.c')
-rw-r--r--source/blender/editors/sculpt_paint/sculpt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index 1b19fa2b976..3a18d7a10de 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -5841,6 +5841,11 @@ static void sculpt_topology_update(Sculpt *sd,
return;
}
+ /* Free index based vertex info as it will become invalid after modifying the topology during the
+ * stroke. */
+ MEM_SAFE_FREE(ss->vertex_info.boundary);
+ MEM_SAFE_FREE(ss->vertex_info.connected_component);
+
PBVHTopologyUpdateMode mode = 0;
float location[3];