[Bf-blender-cvs] [f47f9a04b1b] blender-v2.83-release: Fix T79007: Smooth brushes crasing in dyntopo
Pablo Dobarro
noreply at git.blender.org
Wed Aug 12 09:44:09 CEST 2020
Commit: f47f9a04b1bf8b6497981b302c22c7ae6333fdd2
Author: Pablo Dobarro
Date: Fri Jul 17 16:44:54 2020 +0200
Branches: blender-v2.83-release
https://developer.blender.org/rBf47f9a04b1bf8b6497981b302c22c7ae6333fdd2
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
===================================================================
M source/blender/editors/sculpt_paint/sculpt_smooth.c
===================================================================
diff --git a/source/blender/editors/sculpt_paint/sculpt_smooth.c b/source/blender/editors/sculpt_paint/sculpt_smooth.c
index 3a09d52d418..31faeb7ac9e 100644
--- a/source/blender/editors/sculpt_paint/sculpt_smooth.c
+++ b/source/blender/editors/sculpt_paint/sculpt_smooth.c
@@ -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;
More information about the Bf-blender-cvs
mailing list