[Bf-blender-cvs] [fc40a095316] greasepencil-object: GPencil: Move initial curve control points apart
Charlie Jolly
noreply at git.blender.org
Wed Jul 17 18:09:15 CEST 2019
Commit: fc40a0953162579545689cf96e2982ef487415de
Author: Charlie Jolly
Date: Wed Jul 17 17:08:55 2019 +0100
Branches: greasepencil-object
https://developer.blender.org/rBfc40a0953162579545689cf96e2982ef487415de
GPencil: Move initial curve control points apart
Based on feedback from @matiasmendio
===================================================================
M source/blender/editors/gpencil/gpencil_primitive.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_primitive.c b/source/blender/editors/gpencil/gpencil_primitive.c
index 3fbd6fa2ed8..fa07a7be13e 100644
--- a/source/blender/editors/gpencil/gpencil_primitive.c
+++ b/source/blender/editors/gpencil/gpencil_primitive.c
@@ -217,8 +217,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) {
More information about the Bf-blender-cvs
mailing list