Commit: f29b8c7fa8eb09ea2480302c600df73eaf2f6ee5
Author: Antonio Vazquez
Date:   Wed May 16 10:51:17 2018 +0200
Branches: experimental_gp_weight
https://developer.blender.org/rBf29b8c7fa8eb09ea2480302c600df73eaf2f6ee5

Cleanup: Remove unused parameter

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

M       source/blender/blenkernel/BKE_gpencil.h
M       source/blender/blenkernel/intern/gpencil_modifier.c
M       source/blender/editors/gpencil/gpencil_edit.c
M       source/blender/modifiers/intern/MOD_gpencilsimplify.c

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

diff --git a/source/blender/blenkernel/BKE_gpencil.h 
b/source/blender/blenkernel/BKE_gpencil.h
index 4ae2c41fd58..26de97da47a 100644
--- a/source/blender/blenkernel/BKE_gpencil.h
+++ b/source/blender/blenkernel/BKE_gpencil.h
@@ -178,7 +178,7 @@ void BKE_gpencil_lattice_clear(struct Object *ob);
 
 /* stroke geometry utilities */
 void BKE_gpencil_stroke_normal(const struct bGPDstroke *gps, float 
r_normal[3]);
-void BKE_gpencil_simplify_stroke(struct bGPDlayer *gpl, struct bGPDstroke 
*gps, float factor);
+void BKE_gpencil_simplify_stroke(struct bGPDstroke *gps, float factor);
 void BKE_gpencil_simplify_fixed(struct bGPDlayer *gpl, struct bGPDstroke *gps);
 
 void BKE_gpencil_transform(struct bGPdata *gpd, float mat[4][4]);
diff --git a/source/blender/blenkernel/intern/gpencil_modifier.c 
b/source/blender/blenkernel/intern/gpencil_modifier.c
index 6f90955210e..7a187da9067 100644
--- a/source/blender/blenkernel/intern/gpencil_modifier.c
+++ b/source/blender/blenkernel/intern/gpencil_modifier.c
@@ -243,7 +243,7 @@ static void gpencil_rdp_stroke(bGPDstroke *gps, vec2f 
*points2d, float epsilon)
 }
 
 /* Simplify stroke using Ramer-Douglas-Peucker algorithm */
-void BKE_gpencil_simplify_stroke(bGPDlayer *UNUSED(gpl), bGPDstroke *gps, 
float factor)
+void BKE_gpencil_simplify_stroke(bGPDstroke *gps, float factor)
 {
        /* first create temp data and convert points to 2D */
        vec2f *points2d = MEM_mallocN(sizeof(vec2f) * gps->totpoints, "GP 
Stroke temp 2d points");
diff --git a/source/blender/editors/gpencil/gpencil_edit.c 
b/source/blender/editors/gpencil/gpencil_edit.c
index 483b731cde6..4bca3861f38 100644
--- a/source/blender/editors/gpencil/gpencil_edit.c
+++ b/source/blender/editors/gpencil/gpencil_edit.c
@@ -2961,7 +2961,7 @@ static int gp_stroke_simplify_exec(bContext *C, 
wmOperator *op)
        {
                if (gps->flag & GP_STROKE_SELECT) {
                        /* simplify stroke using Ramer-Douglas-Peucker 
algorithm */
-                       BKE_gpencil_simplify_stroke(gpl, gps, factor);
+                       BKE_gpencil_simplify_stroke(gps, factor);
                }
        }
        GP_EDITABLE_STROKES_END;
diff --git a/source/blender/modifiers/intern/MOD_gpencilsimplify.c 
b/source/blender/modifiers/intern/MOD_gpencilsimplify.c
index c01c79415c3..986165115bc 100644
--- a/source/blender/modifiers/intern/MOD_gpencilsimplify.c
+++ b/source/blender/modifiers/intern/MOD_gpencilsimplify.c
@@ -79,7 +79,7 @@ static void gp_deformStroke(
        }
        else {
                /* simplify stroke using Ramer-Douglas-Peucker algorithm */
-               BKE_gpencil_simplify_stroke(gpl, gps, mmd->factor);
+               BKE_gpencil_simplify_stroke(gps, mmd->factor);
        }
 }

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to