diff options
author | Antonioya <blendergit@gmail.com> | 2018-08-24 18:04:00 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-08-24 18:05:01 +0300 |
commit | 3b2438192bdabc03030eb00a2fdb081aef18f962 (patch) | |
tree | c1d83bca7d47cc806a893c01c60c01918cd4bc7f /source/blender/makesdna/DNA_gpencil_types.h | |
parent | d162be62469a7a7ad341905fe9eeed63c14ed8d5 (diff) |
GP: Fix unreported error drawing polygons
As the polygon drawing is handled using a buffer that is converted to stroke inmediately, the drawing engine was not drawing the buffer stroke because it was empty, and the stoke was not visible becaus eit was in fast drawing mode.
Now there is a special flag to indicate the polygon mode is enabled and force the drawing engine to draw strokes and disable fast drawing.
Diffstat (limited to 'source/blender/makesdna/DNA_gpencil_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_gpencil_types.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_gpencil_types.h b/source/blender/makesdna/DNA_gpencil_types.h index f4a13801949..8462b615d2c 100644 --- a/source/blender/makesdna/DNA_gpencil_types.h +++ b/source/blender/makesdna/DNA_gpencil_types.h @@ -427,6 +427,8 @@ typedef enum eGPdata_Flag { * not valid. */ GP_DATA_STROKE_FORCE_RECALC = (1 << 17), + /* Special mode drawing polygons */ + GP_DATA_STROKE_POLYGON = (1 << 18), } eGPdata_Flag; /* gpd->onion_flag */ |