Commit: f332a711800879dac9ff8ef816793e6a55dc64ea
Author: Antonio Vazquez
Date:   Sun Jun 2 12:12:33 2019 +0200
Branches: master
https://developer.blender.org/rBf332a711800879dac9ff8ef816793e6a55dc64ea

GPencil: Cleanup unused lines

These lines were related to other brushes and were copied in the function by 
error, but not required.

===================================================================

M       source/blender/editors/gpencil/gpencil_brush.c

===================================================================

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;
 }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to