From 2c19c9b2f646e2b28e3ad399380fe27971fe23d8 Mon Sep 17 00:00:00 2001 From: Charlie Jolly Date: Mon, 3 Dec 2018 14:55:57 +0000 Subject: GP: Draw Mode: Add Arc Primitive This adds an elliptical arc primitive. Press CKEY for toggling closed/open arc. Press FKEY key for flipping arc. Additional changes to gpencil primitives. Increases default edges of circle to 64. Keymap changes to allow primitives to be drawn with Shift or Alt key. Allow Plus/Minus key to adjust number of edges. Missing: Toolbar icon Differential Revision: https://developer.blender.org/D4024 --- source/blender/editors/gpencil/gpencil_intern.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source/blender/editors/gpencil/gpencil_intern.h') diff --git a/source/blender/editors/gpencil/gpencil_intern.h b/source/blender/editors/gpencil/gpencil_intern.h index 93d75063bff..5db5c0f2571 100644 --- a/source/blender/editors/gpencil/gpencil_intern.h +++ b/source/blender/editors/gpencil/gpencil_intern.h @@ -154,6 +154,8 @@ typedef struct tGPDprimitive { struct bGPDlayer *gpl; /* layer */ struct bGPDframe *gpf; /* frame */ int type; /* type of primitive */ + short cyclic; /* cyclic option */ + short flip; /* flip option */ int tot_edges; /* number of polygon edges */ int top[2]; /* first box corner */ int bottom[2]; /* last box corner */ @@ -369,7 +371,8 @@ enum { enum { GP_STROKE_BOX = -1, GP_STROKE_LINE = 1, - GP_STROKE_CIRCLE = 2 + GP_STROKE_CIRCLE = 2, + GP_STROKE_ARC = 3 }; -- cgit v1.2.3