diff options
author | Antonioya <blendergit@gmail.com> | 2016-08-08 12:26:00 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2016-08-08 12:26:28 +0300 |
commit | 444422120f25de84d02abc99b417bd3d6b85d55a (patch) | |
tree | 9b43bf2418870d658af6aed58b31ccfdafaa646d | |
parent | 31c34acff0b91444100095d9c2980273a4abd437 (diff) |
GPencil: Cleanup - Rename function for better naming
The old function name was not clear enough
-rw-r--r-- | source/blender/editors/gpencil/gpencil_paint.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c index 3afdd5772fc..e7e39a85792 100644 --- a/source/blender/editors/gpencil/gpencil_paint.c +++ b/source/blender/editors/gpencil/gpencil_paint.c @@ -2287,8 +2287,8 @@ static void gpencil_stroke_end(wmOperator *op) p->gpf = NULL; } -/* if drawing polygon and draw on back is enabled, move the stroke below all previous strokes */ -static void gpencil_move_polygon_stroke_to_back(bContext *C) +/* Move last stroke in the listbase to the head to be drawn below all previous strokes in the layer */ +static void gpencil_move_last_stroke_to_back(bContext *C) { /* move last stroke (the polygon) to head of the listbase stroke to draw on back of all previous strokes */ bGPdata *gpd = ED_gpencil_data_get_active(C); @@ -2368,7 +2368,7 @@ static int gpencil_draw_modal(bContext *C, wmOperator *op, const wmEvent *event) /* if drawing polygon and enable on back, must move stroke */ if ((p->scene->toolsettings->gpencil_flags & GP_TOOL_FLAG_PAINT_ONBACK) && (p->paintmode == GP_PAINTMODE_DRAW_POLY)) { if (p->flags & GP_PAINTFLAG_STROKEADDED) { - gpencil_move_polygon_stroke_to_back(C); + gpencil_move_last_stroke_to_back(C); } } p->status = GP_STATUS_DONE; @@ -2430,7 +2430,7 @@ static int gpencil_draw_modal(bContext *C, wmOperator *op, const wmEvent *event) /* if drawing polygon and enable on back, must move stroke */ if ((p->scene->toolsettings->gpencil_flags & GP_TOOL_FLAG_PAINT_ONBACK) && (p->paintmode == GP_PAINTMODE_DRAW_POLY)) { if (p->flags & GP_PAINTFLAG_STROKEADDED) { - gpencil_move_polygon_stroke_to_back(C); + gpencil_move_last_stroke_to_back(C); } } p->status = GP_STATUS_DONE; @@ -2516,7 +2516,7 @@ static int gpencil_draw_modal(bContext *C, wmOperator *op, const wmEvent *event) /* if drawing polygon and enable on back, must move stroke */ if ((p->scene->toolsettings->gpencil_flags & GP_TOOL_FLAG_PAINT_ONBACK) && (p->paintmode == GP_PAINTMODE_DRAW_POLY)) { if (p->flags & GP_PAINTFLAG_STROKEADDED) { - gpencil_move_polygon_stroke_to_back(C); + gpencil_move_last_stroke_to_back(C); } } p->status = GP_STATUS_DONE; |