GPencil: Fix compiler warnings in previous commit
This commit is contained in:
parent
88c855174d
commit
a96b52e37f
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue