diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-12-13 11:50:59 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-12-13 11:55:17 +0300 |
commit | d6ee328c92ad3c77150a31c51981f2eaeaec1792 (patch) | |
tree | 63fa2fa62e89ae784a08e22089a2debb6a1c7cec /source/blender/editors/gpencil | |
parent | fd5d4cfeff289764c42a9faf85a38690ae38f18e (diff) |
Cleanup: style/warnings
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_brush.c | 18 | ||||
-rw-r--r-- | source/blender/editors/gpencil/gpencil_edit.c | 6 |
2 files changed, 12 insertions, 12 deletions
diff --git a/source/blender/editors/gpencil/gpencil_brush.c b/source/blender/editors/gpencil/gpencil_brush.c index ecc78dfc6b4..48d8b427c06 100644 --- a/source/blender/editors/gpencil/gpencil_brush.c +++ b/source/blender/editors/gpencil/gpencil_brush.c @@ -25,7 +25,7 @@ * Brush based operators for editing Grease Pencil strokes */ -/** \file blender/editors/gpencil/gpencil_edit.c +/** \file blender/editors/gpencil/gpencil_brush.c * \ingroup edgpencil */ @@ -602,10 +602,10 @@ static bool gp_brush_twist_apply(tGP_BrushEditData *gso, bGPDstroke *gps, int i, #if 0 printf("C: %d %d | P: %d %d -> t: %f %f -> r: %f %f x %f -> %f %f\n", - gso->mval[0], gso->mval[1], co[0], co[1], - tco[0], tco[1], - rco[0], rco[1], angle, - nco[0], nco[1]); + gso->mval[0], gso->mval[1], co[0], co[1], + tco[0], tco[1], + rco[0], rco[1], angle, + nco[0], nco[1]); #endif /* convert to dataspace */ @@ -833,7 +833,7 @@ static void gp_brush_clone_add(bContext *C, tGP_BrushEditData *gso) } /* Move newly-added strokes around - "Stamp" mode of the Clone brush */ -static void gp_brush_clone_adjust(bContext *C, tGP_BrushEditData *gso) +static void gp_brush_clone_adjust(tGP_BrushEditData *gso) { tGPSB_CloneBrushData *data = gso->customdata; size_t snum; @@ -885,7 +885,7 @@ static bool gpsculpt_brush_apply_clone(bContext *C, tGP_BrushEditData *gso) /* Stamp or Continous Mode */ if (1 /*gso->brush->mode == GP_EDITBRUSH_CLONE_MODE_STAMP*/) { /* Stamp - Proceed to translate the newly added strokes */ - gp_brush_clone_adjust(C, gso); + gp_brush_clone_adjust(gso); } else { /* Continuous - Just keep pasting everytime we move */ @@ -957,7 +957,7 @@ static void gpsculpt_brush_header_set(bContext *C, tGP_BrushEditData *gso) BLI_snprintf(str, sizeof(str), IFACE_("GPencil Sculpt: %s Stroke | LMB to paint | RMB/Escape to Exit" " | Ctrl to Invert Action | Wheel Up/Down for Size " - " | Shift-Wheel Up/Down for Strength"), + " | Shift-Wheel Up/Down for Strength"), (brush_name) ? brush_name : "<?>"); ED_area_headerprint(CTX_wm_area(C), str); @@ -1119,7 +1119,7 @@ static void gpsculpt_brush_init_stroke(tGP_BrushEditData *gso) for (gpl = gpd->layers.first; gpl; gpl = gpl->next) { /* only editable and visible layers are considered */ if ((gpl->flag & (GP_LAYER_HIDE | GP_LAYER_LOCKED)) == 0 && - (gpl->actframe != NULL)) + (gpl->actframe != NULL)) { bGPDframe *gpf = gpl->actframe; diff --git a/source/blender/editors/gpencil/gpencil_edit.c b/source/blender/editors/gpencil/gpencil_edit.c index 9c832ebe20c..3f1e06f9065 100644 --- a/source/blender/editors/gpencil/gpencil_edit.c +++ b/source/blender/editors/gpencil/gpencil_edit.c @@ -84,7 +84,7 @@ static int gpencil_editmode_toggle_poll(bContext *C) return ED_gpencil_data_get_active(C) != NULL; } -static int gpencil_editmode_toggle_exec(bContext *C, wmOperator *op) +static int gpencil_editmode_toggle_exec(bContext *C, wmOperator *UNUSED(op)) { bGPdata *gpd = ED_gpencil_data_get_active(C); @@ -1020,7 +1020,7 @@ static int gp_snap_poll(bContext *C) /* --------------------------------- */ -static int gp_snap_to_grid(bContext *C, wmOperator *op) +static int gp_snap_to_grid(bContext *C, wmOperator *UNUSED(op)) { RegionView3D *rv3d = CTX_wm_region_data(C); float gridf = rv3d->gridview; @@ -1129,7 +1129,7 @@ void GPENCIL_OT_snap_to_cursor(wmOperatorType *ot) /* ------------------------------- */ -static int gp_snap_cursor_to_sel(bContext *C, wmOperator *op) +static int gp_snap_cursor_to_sel(bContext *C, wmOperator *UNUSED(op)) { Scene *scene = CTX_data_scene(C); View3D *v3d = CTX_wm_view3d(C); |