[Bf-blender-cvs] [d01781129fa] master: Fix T90235: Smooth Brush not working with interior vertices with two adjacent edges

Pablo Dobarro noreply at git.blender.org
Thu Aug 5 20:10:30 CEST 2021


Commit: d01781129fab7846a6a03815b0c0b48b2a809c39
Author: Pablo Dobarro
Date:   Tue Jul 27 20:26:38 2021 +0200
Branches: master
https://developer.blender.org/rBd01781129fab7846a6a03815b0c0b48b2a809c39

Fix T90235: Smooth Brush not working with interior vertices with two adjacent edges

The exception to automatically pin vertices of grid corners also
has to take into account that the vertex is in a boundary.

Reviewed By: JacquesLucke

Maniphest Tasks: T90235

Differential Revision: https://developer.blender.org/D12044

===================================================================

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 eabbfe43e03..38165b7622f 100644
--- a/source/blender/editors/sculpt_paint/sculpt_smooth.c
+++ b/source/blender/editors/sculpt_paint/sculpt_smooth.c
@@ -88,7 +88,7 @@ void SCULPT_neighbor_coords_average_interior(SculptSession *ss, float result[3],
   SCULPT_VERTEX_NEIGHBORS_ITER_END(ni);
 
   /* Do not modify corner vertices. */
-  if (neighbor_count <= 2) {
+  if (neighbor_count <= 2 && is_boundary) {
     copy_v3_v3(result, SCULPT_vertex_co_get(ss, index));
     return;
   }



More information about the Bf-blender-cvs mailing list