[Bf-blender-cvs] [28f667c7c46] blender-v2.83-release: Fix T75778: Missing ME_VERT_PBVH_UPDATE in Surface Smooth
Pablo Dobarro
noreply at git.blender.org
Mon Apr 20 02:19:00 CEST 2020
Commit: 28f667c7c46a1855146bba9e555b20c9993d7316
Author: Pablo Dobarro
Date: Mon Apr 20 02:17:50 2020 +0200
Branches: blender-v2.83-release
https://developer.blender.org/rB28f667c7c46a1855146bba9e555b20c9993d7316
Fix T75778: Missing ME_VERT_PBVH_UPDATE in Surface Smooth
Without this flag the PBVH won't update taking the modified vertices
into account.
Reviewed By: brecht
Maniphest Tasks: T75778
Differential Revision: https://developer.blender.org/D7453
===================================================================
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 5410a85ed85..3a09d52d418 100644
--- a/source/blender/editors/sculpt_paint/sculpt_smooth.c
+++ b/source/blender/editors/sculpt_paint/sculpt_smooth.c
@@ -533,6 +533,9 @@ static void SCULPT_do_surface_smooth_brush_laplacian_task_cb_ex(
orig_data.co,
alpha);
madd_v3_v3fl(vd.co, disp, clamp_f(fade, 0.0f, 1.0f));
+ if (vd.mvert) {
+ vd.mvert->flag |= ME_VERT_PBVH_UPDATE;
+ }
}
BKE_pbvh_vertex_iter_end;
}
More information about the Bf-blender-cvs
mailing list