From c48023b80ad0418af590ed476f062f042370a1f7 Mon Sep 17 00:00:00 2001 From: YimingWu Date: Tue, 2 May 2023 15:59:12 +0800 Subject: [PATCH] Weight Paint: Fix wrongly used lookup_or_default() This function is changed by #107059 since my original patch in #106417, so when merged it caused compilation error. Now fixed. --- source/blender/editors/sculpt_paint/paint_vertex_weight_ops.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 28b39767673..bce9e489361 100644 --- a/source/blender/editors/sculpt_paint/paint_vertex_weight_ops.cc +++ b/source/blender/editors/sculpt_paint/paint_vertex_weight_ops.cc @@ -832,7 +832,7 @@ static int paint_weight_gradient_exec(bContext *C, wmOperator *op) data.dvert = dverts; data.select_vert = (const bool *)CustomData_get_layer_named( &me->vdata, CD_PROP_BOOL, ".select_vert"); - data.hide_vert = attributes.lookup_or_default(".hide_vert", ATTR_DOMAIN_POINT, false); + data.hide_vert = *attributes.lookup_or_default(".hide_vert", ATTR_DOMAIN_POINT, false); data.sco_start = sco_start; data.sco_end = sco_end; data.sco_line_div = 1.0f / len_v2v2(sco_start, sco_end); -- 2.30.2