Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharlie Jolly <mistajolly@gmail.com>2019-07-17 19:08:55 +0300
committerAntonioya <blendergit@gmail.com>2019-07-17 23:24:39 +0300
commit158eb98c2233c3099dc0fd6a1e399478750cc7a6 (patch)
treeda8f8d9fad7a74e0b5da3a75275a894c85f2fe93
parenteee46769cefe47c9edcc2ac430f212c1e31e7ad5 (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.
-rw-r--r--source/blender/editors/gpencil/gpencil_primitive.c4
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) {