GPencil: Cleanup unused lines

These lines were related to other brushes and were copied in the function by error, but not required.
This commit is contained in:
Antonio Vazquez 2019-06-02 12:12:33 +02:00
parent 079c7f918c
commit f332a71180
1 changed files with 0 additions and 6 deletions

View File

@ -894,7 +894,6 @@ static bool gp_brush_weight_apply(
/* create dvert */
BKE_gpencil_dvert_ensure(gps);
bGPDspoint *pt = gps->points + pt_index;
MDeformVert *dvert = gps->dvert + pt_index;
float inf;
@ -939,11 +938,6 @@ static bool gp_brush_weight_apply(
dw->weight = curweight;
}
/* weight should stay within [0.0, 1.0] */
if (pt->pressure < 0.0f) {
pt->pressure = 0.0f;
}
return true;
}