Fix T79056: Topology automasking artifacts in multires

Both to_v and form_v need to be included. From_v is needed to include
the active vertex when there is only one vertex in the radius of the
brush, to_v needs to be included to add all grids duplicates

Reviewed By: sergey

Maniphest Tasks: T79056

Differential Revision: https://developer.blender.org/D8347
This commit is contained in:
Pablo Dobarro 2020-07-19 20:32:24 +02:00
parent 7aabd74222
commit a39da2cbca
Notes: blender-bot 2023-02-13 21:45:10 +01:00
Referenced by issue #79056, Grab brush used on Multires with Auto-Masking Topology enabled are breaking the mesh
1 changed files with 1 additions and 0 deletions

View File

@ -177,6 +177,7 @@ static bool automask_floodfill_cb(
{
AutomaskFloodFillData *data = userdata;
data->automask_factor[to_v] = 1.0f;
data->automask_factor[from_v] = 1.0f;
return (!data->use_radius ||
SCULPT_is_vertex_inside_brush_radius_symm(