diff --git a/source/blender/editors/sculpt_paint/paint_vertex_weight_ops.cc b/source/blender/editors/sculpt_paint/paint_vertex_weight_ops.cc index c1523117142..5eff4e5ef25 100644 --- a/source/blender/editors/sculpt_paint/paint_vertex_weight_ops.cc +++ b/source/blender/editors/sculpt_paint/paint_vertex_weight_ops.cc @@ -644,10 +644,6 @@ static void gradientVertUpdate__mapFunc(void *user_data, return; } - if (grad_data->hide_vert[index]) { - return; - } - gradientVert_update(grad_data, index); } @@ -659,7 +655,9 @@ static void gradientVertInit__mapFunc(void *user_data, WPGradient_userData *grad_data = static_cast(user_data); WPGradient_vertStore *vs = &grad_data->vert_cache->elem[index]; - if (grad_data->use_select && (grad_data->select_vert && !grad_data->select_vert[index])) { + if (grad_data->hide_vert[index] || + (grad_data->use_select && (grad_data->select_vert && !grad_data->select_vert[index]))) + { copy_v2_fl(vs->sco, FLT_MAX); return; }