diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-18 06:13:06 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-18 06:13:06 +0300 |
commit | 317cb1dd6507be3e043e32eb1ddaece509bbbbb5 (patch) | |
tree | 4fca876d6b13da8cbd21ddc848f79811a3ca1796 /source/blender/editors/gpencil/gpencil_primitive.c | |
parent | 6c0240e84a2c06af506697242e0ba42fa4998ee5 (diff) |
Cleanup: style, duplicate include
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_primitive.c')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_primitive.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/source/blender/editors/gpencil/gpencil_primitive.c b/source/blender/editors/gpencil/gpencil_primitive.c index 962442824f9..9c4836c5d33 100644 --- a/source/blender/editors/gpencil/gpencil_primitive.c +++ b/source/blender/editors/gpencil/gpencil_primitive.c @@ -930,13 +930,15 @@ static void gp_primitive_update_strokes(bContext *C, tGPDprimitive *tgpi) ts->gpencil_v3d_align, origin); /* reproject current */ ED_gpencil_tpoint_to_point(tgpi->ar, origin, tpt, &spt); - ED_gp_project_point_to_plane(tgpi->scene, tgpi->ob, tgpi->rv3d, - origin, tgpi->lock_axis - 1, &spt); + ED_gp_project_point_to_plane( + tgpi->scene, tgpi->ob, tgpi->rv3d, + origin, tgpi->lock_axis - 1, &spt); /* reproject previous */ ED_gpencil_tpoint_to_point(tgpi->ar, origin, tptb, &spt2); - ED_gp_project_point_to_plane(tgpi->scene, tgpi->ob, tgpi->rv3d, - origin, tgpi->lock_axis - 1, &spt2); + ED_gp_project_point_to_plane( + tgpi->scene, tgpi->ob, tgpi->rv3d, + origin, tgpi->lock_axis - 1, &spt2); tgpi->totpixlen += len_v3v3(&spt.x, &spt2.x) / pixsize; tpt->uv_fac = tgpi->totpixlen; if ((gp_style) && (gp_style->sima)) { @@ -995,8 +997,8 @@ static void gp_primitive_update_strokes(bContext *C, tGPDprimitive *tgpi) tgpi->scene, tgpi->ob, tgpi->gpl, ts->gpencil_v3d_align, origin); ED_gp_project_stroke_to_plane( - tgpi->scene, tgpi->ob, tgpi->rv3d, gps, - origin, ts->gp_sculpt.lock_axis - 1); + tgpi->scene, tgpi->ob, tgpi->rv3d, gps, + origin, ts->gp_sculpt.lock_axis - 1); } /* if parented change position relative to parent object */ |