Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2019-06-02 13:12:33 +0300
committerAntonio Vazquez <blendergit@gmail.com>2019-06-02 13:12:33 +0300
commitf332a711800879dac9ff8ef816793e6a55dc64ea (patch)
tree717625b452a212a3167b5269a0379b1dde647be4 /source/blender/editors/gpencil/gpencil_brush.c
parent079c7f918c8150283eb68358311c8f2766c8e538 (diff)
GPencil: Cleanup unused lines
These lines were related to other brushes and were copied in the function by error, but not required.
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_brush.c')
-rw-r--r--source/blender/editors/gpencil/gpencil_brush.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/source/blender/editors/gpencil/gpencil_brush.c b/source/blender/editors/gpencil/gpencil_brush.c
index 9777a8190c1..915af337b86 100644
--- a/source/blender/editors/gpencil/gpencil_brush.c
+++ b/source/blender/editors/gpencil/gpencil_brush.c
@@ -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;
}