[Bf-blender-cvs] [fbbd03ae8a2] soc-2020-greasepencil-curve: GPencil: remove unnecessary variables

Falk David noreply at git.blender.org
Wed Jul 22 16:11:33 CEST 2020


Commit: fbbd03ae8a22ccf90365f42d8d3cc68537d3d1db
Author: Falk David
Date:   Tue Jul 21 16:02:07 2020 +0200
Branches: soc-2020-greasepencil-curve
https://developer.blender.org/rBfbbd03ae8a22ccf90365f42d8d3cc68537d3d1db

GPencil: remove unnecessary variables

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

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

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

diff --git a/source/blender/editors/gpencil/gpencil_edit_curve.c b/source/blender/editors/gpencil/gpencil_edit_curve.c
index 64e5867309f..d6373e01d1e 100644
--- a/source/blender/editors/gpencil/gpencil_edit_curve.c
+++ b/source/blender/editors/gpencil/gpencil_edit_curve.c
@@ -156,12 +156,6 @@ static int gpencil_editcurve_set_handle_type_exec(bContext *C, wmOperator *op)
 
       if (gpc_pt->flag & GP_CURVE_POINT_SELECT) {
         BezTriple *bezt = &gpc_pt->bezt;
-        bGPDcurve_point *gpc_pt_prev = (i > 0) ? &gpc->curve_points[i - 1] : NULL;
-        bGPDcurve_point *gpc_pt_next = (i < gpc->tot_curve_points - 1) ?
-                                           &gpc->curve_points[i + 1] :
-                                           NULL;
-        BezTriple *bezt_prev = gpc_pt_prev != NULL ? &gpc_pt_prev->bezt : NULL;
-        BezTriple *bezt_next = gpc_pt_next != NULL ? &gpc_pt_next->bezt : NULL;
 
         if (bezt->f2 & SELECT) {
           bezt->h1 = handle_type;



More information about the Bf-blender-cvs mailing list