Commit: b17c8dfe288eaa656cea394c9f731554ea506277
Author: Charlie Jolly
Date: Mon Dec 10 16:45:06 2018 +0000
Branches: greasepencil-object
https://developer.blender.org/rBb17c8dfe288eaa656cea394c9f731554ea506277
GP: Tidy
===================================================================
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 188d2988629..6cfd77e97f8 100644
--- a/source/blender/editors/gpencil/gpencil_primitive.c
+++ b/source/blender/editors/gpencil/gpencil_primitive.c
@@ -427,13 +427,11 @@ static void gp_primitive_arc(tGPDprimitive *tgpi,
tGPspoint *points2D)
float length[2];
float start[2];
float end[2];
- float cp[2];
float origin[2];
float a = 0.0f;
copy_v2_v2(start, tgpi->start);
copy_v2_v2(end, tgpi->end);
- copy_v2_v2(cp, tgpi->cp1);
copy_v2_v2(origin, tgpi->origin);
if (tgpi->flip) {
@@ -444,9 +442,6 @@ static void gp_primitive_arc(tGPDprimitive *tgpi, tGPspoint
*points2D)
length[0] = end[0] - start[0];
length[1] = end[1] - start[1];
- cp[0] = cp[0] - origin[0];
- cp[1] = cp[1] - origin[1];
-
for (int i = tgpi->tot_stored_edges; i < totpoints; i++) {
tGPspoint *p2d = &points2D[i];
p2d->x = (start[0] + sinf(a) * length[0]);
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs