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:
parent
079c7f918c
commit
f332a71180
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue