Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_brush.c')
-rw-r--r--source/blender/editors/gpencil/gpencil_brush.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/gpencil_brush.c b/source/blender/editors/gpencil/gpencil_brush.c
index c2f1e9f091a..0c3e3294428 100644
--- a/source/blender/editors/gpencil/gpencil_brush.c
+++ b/source/blender/editors/gpencil/gpencil_brush.c
@@ -988,7 +988,7 @@ static bool gp_brush_weight_apply(tGP_BrushEditData *gso,
}
}
/* get current weight */
- MDeformWeight *dw = defvert_verify_index(dvert, gso->vrgroup);
+ MDeformWeight *dw = BKE_defvert_ensure_index(dvert, gso->vrgroup);
float curweight = dw ? dw->weight : 0.0f;
if (gp_brush_invert_check(gso)) {