GPencil: Fix compiler warnings in previous commit
This commit is contained in:
@@ -176,8 +176,8 @@ static void deformStroke(GpencilModifierData *md,
|
|||||||
/* Use weightened factor. */
|
/* Use weightened factor. */
|
||||||
if (mmd->flag & GP_TINT_WEIGHT_FACTOR) {
|
if (mmd->flag & GP_TINT_WEIGHT_FACTOR) {
|
||||||
/* Use first point for weight. */
|
/* Use first point for weight. */
|
||||||
MDeformVert *dvert = (gps->dvert != NULL) ? &gps->dvert[0] : NULL;
|
MDeformVert *dvert_fill = (gps->dvert != NULL) ? &gps->dvert[0] : NULL;
|
||||||
float weight = get_modifier_point_weight(dvert, is_inverted, def_nr);
|
float weight = get_modifier_point_weight(dvert_fill, is_inverted, def_nr);
|
||||||
if (weight >= 0.0f) {
|
if (weight >= 0.0f) {
|
||||||
fill_factor = ((mmd->flag & GP_TINT_INVERT_VGROUP) ? 1.0f - weight : weight);
|
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');
|
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);
|
PointerRNA *ptr = gpencil_modifier_panel_get_property_pointers(panel, NULL);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user