Fix T79007: Smooth brushes crasing in dyntopo

The custom smooth functions for bmesh and meshes where removed and
replaced by a generic smooth function using the sculpt API, which needs
to initialize the bmesh indices in order to be used

Reviewed By: sergey

Maniphest Tasks: T79007

Differential Revision: https://developer.blender.org/D8333
This commit is contained in:
Pablo Dobarro 2020-07-17 16:44:54 +02:00 committed by Jeroen Bakker
parent 2d3deb29ea
commit f47f9a04b1
Notes: blender-bot 2023-02-14 04:24:05 +01:00
Referenced by issue #79007, Crash: sculpting with Dyntopo + clay brush
Referenced by issue #77348, Blender LTS: Maintenance Task 2.83
1 changed files with 2 additions and 0 deletions

View File

@ -415,6 +415,8 @@ void SCULPT_smooth(Sculpt *sd,
return;
}
SCULPT_vertex_random_access_init(ss);
for (iteration = 0; iteration <= count; iteration++) {
const float strength = (iteration != count) ? 1.0f : last;