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>2018-12-03 17:55:57 +0300
committerCharlie Jolly <mistajolly@gmail.com>2018-12-04 01:11:38 +0300
commit2c19c9b2f646e2b28e3ad399380fe27971fe23d8 (patch)
treedeeb652385f3ce82e396853b70575c87e13f73bd /source/blender/editors/gpencil/gpencil_intern.h
parentf0432e37ab06831167cf84c589fad7d5a28d54ef (diff)
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
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_intern.h')
-rw-r--r--source/blender/editors/gpencil/gpencil_intern.h5
1 files changed, 4 insertions, 1 deletions
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
};