diff options
author | Antonioya <blendergit@gmail.com> | 2016-10-14 13:02:49 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2016-10-14 13:06:30 +0300 |
commit | f23db59e48024a6f89b80ff5c2fc36dc45694fc3 (patch) | |
tree | d4774772a415d045eb14352a4f0ae78d6dacbb7d /source/blender/makesdna/DNA_gpencil_types.h | |
parent | 58f0af965c83c6497bb5ee4e893e7de4d66f5c5a (diff) |
GPencil: Display stroke filling while drawing
Before this change, the stroke was filled only after complete the stroke drawing. For artist is better to get a feedback of the area he is filling while drawing, so this commit draws the filling area while drawing.
The triangulation of the stroke is recalculated every time the function is called because using a cache is not useful because the points information is changing all the time while the stroke is being drawing.
Diffstat (limited to 'source/blender/makesdna/DNA_gpencil_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_gpencil_types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_gpencil_types.h b/source/blender/makesdna/DNA_gpencil_types.h index 23b73424da5..180dd5577ce 100644 --- a/source/blender/makesdna/DNA_gpencil_types.h +++ b/source/blender/makesdna/DNA_gpencil_types.h @@ -295,6 +295,7 @@ typedef struct bGPdata { short sbuffer_sflag; /* flags for stroke that cache represents */ void *sbuffer; /* stroke buffer (can hold GP_STROKE_BUFFER_MAX) */ float scolor[4]; /* buffer color using palettes */ + float sfill[4]; /* buffer fill color */ char pad[6]; /* padding for compiler alignment error */ short sflag; /* settings for palette color */ |