diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-06 02:51:11 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-06 02:51:11 +0300 |
commit | 85b667716aab76e08a5387e03197c7a068ba7a58 (patch) | |
tree | 0890a3593b56305ef5261cc176ce7c3f5e1ab527 /source/blender/editors/gpencil | |
parent | 104d9b475d10afb300699596373b06f26308624f (diff) |
Cleanup: style
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_edit.c | 9 | ||||
-rw-r--r-- | source/blender/editors/gpencil/gpencil_ops.c | 14 |
2 files changed, 13 insertions, 10 deletions
diff --git a/source/blender/editors/gpencil/gpencil_edit.c b/source/blender/editors/gpencil/gpencil_edit.c index c9a2cd5907f..e1e1d6a2814 100644 --- a/source/blender/editors/gpencil/gpencil_edit.c +++ b/source/blender/editors/gpencil/gpencil_edit.c @@ -757,10 +757,11 @@ void GPENCIL_OT_duplicate(wmOperatorType *ot) /* ************** Extrude Selected Strokes **************** */ /* helper to copy a point to temp area */ -static void copy_point(bGPDstroke *gps, - bGPDspoint *temp_points, - MDeformVert *temp_dverts, - int from_idx, int to_idx) +static void copy_point( + bGPDstroke *gps, + bGPDspoint *temp_points, + MDeformVert *temp_dverts, + int from_idx, int to_idx) { bGPDspoint *pt = &temp_points[from_idx]; bGPDspoint *pt_final = &gps->points[to_idx]; diff --git a/source/blender/editors/gpencil/gpencil_ops.c b/source/blender/editors/gpencil/gpencil_ops.c index 6b165f1ac8e..c01da39bcd8 100644 --- a/source/blender/editors/gpencil/gpencil_ops.c +++ b/source/blender/editors/gpencil/gpencil_ops.c @@ -355,9 +355,10 @@ void ED_operatormacros_gpencil(void) wmOperatorTypeMacro *otmacro; /* Duplicate + Move = Interactively place newly duplicated strokes */ - ot = WM_operatortype_append_macro("GPENCIL_OT_duplicate_move", "Duplicate Strokes", - "Make copies of the selected Grease Pencil strokes and move them", - OPTYPE_UNDO | OPTYPE_REGISTER); + ot = WM_operatortype_append_macro( + "GPENCIL_OT_duplicate_move", "Duplicate Strokes", + "Make copies of the selected Grease Pencil strokes and move them", + OPTYPE_UNDO | OPTYPE_REGISTER); WM_operatortype_macro_define(ot, "GPENCIL_OT_duplicate"); otmacro = WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate"); RNA_boolean_set(otmacro->ptr, "gpencil_strokes", true); @@ -365,9 +366,10 @@ void ED_operatormacros_gpencil(void) RNA_boolean_set(otmacro->ptr, "mirror", false); /* Extrude + Move = Interactively add new points */ - ot = WM_operatortype_append_macro("GPENCIL_OT_extrude_move", "Extrude Stroke Points", - "Extrude selected points and move them", - OPTYPE_UNDO | OPTYPE_REGISTER); + ot = WM_operatortype_append_macro( + "GPENCIL_OT_extrude_move", "Extrude Stroke Points", + "Extrude selected points and move them", + OPTYPE_UNDO | OPTYPE_REGISTER); WM_operatortype_macro_define(ot, "GPENCIL_OT_extrude"); otmacro = WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate"); RNA_boolean_set(otmacro->ptr, "gpencil_strokes", true); |