diff options
author | Charlie Jolly <mistajolly@gmail.com> | 2019-07-17 19:08:55 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2019-07-17 23:24:39 +0300 |
commit | 158eb98c2233c3099dc0fd6a1e399478750cc7a6 (patch) | |
tree | da8f8d9fad7a74e0b5da3a75275a894c85f2fe93 /source/blender/editors/gpencil/gpencil_primitive.c | |
parent | eee46769cefe47c9edcc2ac430f212c1e31e7ad5 (diff) |
GPencil: Fix usability problem with curve control points apart
Based on feedback from @matiasmendio
There was a problem with the control points because it was very difficult to know what point move. Now the points are moved apart and makes easy to know what point use.
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_primitive.c')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_primitive.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/gpencil/gpencil_primitive.c b/source/blender/editors/gpencil/gpencil_primitive.c index 540dd14fe1d..cca94925e6e 100644 --- a/source/blender/editors/gpencil/gpencil_primitive.c +++ b/source/blender/editors/gpencil/gpencil_primitive.c @@ -225,8 +225,8 @@ static void gp_primitive_update_cps(tGPDprimitive *tgpi) } else if (tgpi->type == GP_STROKE_CURVE) { mid_v2_v2v2(tgpi->midpoint, tgpi->start, tgpi->end); - copy_v2_v2(tgpi->cp1, tgpi->midpoint); - copy_v2_v2(tgpi->cp2, tgpi->cp1); + interp_v2_v2v2(tgpi->cp1, tgpi->midpoint, tgpi->start, 0.33f); + interp_v2_v2v2(tgpi->cp2, tgpi->midpoint, tgpi->end, 0.33f); } else if (tgpi->type == GP_STROKE_ARC) { if (tgpi->flip) { |