diff options
Diffstat (limited to 'source/blender/makesdna/DNA_gpencil_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_gpencil_types.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_gpencil_types.h b/source/blender/makesdna/DNA_gpencil_types.h index 43ce3649db3..934ef4a4829 100644 --- a/source/blender/makesdna/DNA_gpencil_types.h +++ b/source/blender/makesdna/DNA_gpencil_types.h @@ -48,6 +48,13 @@ struct MDeformVert; /* ***************************************** */ /* GP Stroke Points */ +/* 'Control Point' data for primitives and curves */ +typedef struct bGPDcontrolpoint { + float x, y, z; /* x and y coordinates of control point */ + float color[4]; /* point color */ + int size; /* radius */ +} bGPDcontrolpoint; + /* Grease-Pencil Annotations - 'Stroke Point' * -> Coordinates may either be 2d or 3d depending on settings at the time * -> Coordinates of point on stroke, in proportions of window size @@ -345,6 +352,10 @@ typedef struct bGPdata_Runtime { short sbuffer_size; /* number of elements currently in cache */ short sbuffer_sflag; /* flags for stroke that cache represents */ char pad_[6]; + + int tot_cp_points; /* number of control-points for stroke */ + char pad1_[4]; + bGPDcontrolpoint *cp_points; /* array of control-points for stroke */ } bGPdata_Runtime; /* grid configuration */ |