GPencil: Fix compiler warnings in previous commit

This commit is contained in:
Antonio Vazquez 2021-07-02 16:32:01 +02:00
parent 88c855174d
commit a96b52e37f
2 changed files with 3 additions and 3 deletions

View File

@ -176,8 +176,8 @@ static void deformStroke(GpencilModifierData *md,
/* Use weightened factor. */
if (mmd->flag & GP_TINT_WEIGHT_FACTOR) {
/* Use first point for weight. */
MDeformVert *dvert = (gps->dvert != NULL) ? &gps->dvert[0] : NULL;
float weight = get_modifier_point_weight(dvert, is_inverted, def_nr);
MDeformVert *dvert_fill = (gps->dvert != NULL) ? &gps->dvert[0] : NULL;
float weight = get_modifier_point_weight(dvert_fill, is_inverted, def_nr);
if (weight >= 0.0f) {
fill_factor = ((mmd->flag & GP_TINT_INVERT_VGROUP) ? 1.0f - weight : weight);
}

View File

@ -249,7 +249,7 @@ static bool isDisabled(GpencilModifierData *md, int UNUSED(userRenderParams))
return !(mmd->target_vgname && mmd->target_vgname[0] != '\0');
}
static void distance_panel_draw(const bContext *C, Panel *panel)
static void distance_panel_draw(const bContext *UNUSED(C), Panel *panel)
{
PointerRNA *ptr = gpencil_modifier_panel_get_property_pointers(panel, NULL);