diff options
author | Antonioya <blendergit@gmail.com> | 2018-10-20 20:40:29 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-10-20 20:40:29 +0300 |
commit | 8c9f8d6cbb3ad176d4731649b22e97344f407aa4 (patch) | |
tree | 3e89d37bab9d1febd2acb098517e6af45ad4e1c0 /source/blender/makesdna/DNA_gpencil_types.h | |
parent | 541d07045b79cef52bdcf8bd1d90fc60793c9872 (diff) |
GP: Fix duplication when draw strokes in multiple windows
The stroke must be visible only in the current region and only visible when the stroke is completed.
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 b420c595c6e..858008afd91 100644 --- a/source/blender/makesdna/DNA_gpencil_types.h +++ b/source/blender/makesdna/DNA_gpencil_types.h @@ -34,6 +34,7 @@ #include "DNA_ID.h" #include "DNA_brush_types.h" +struct ARegion; struct AnimData; struct CurveMapping; struct GHash; @@ -306,6 +307,7 @@ typedef enum eGPDlayer_OnionFlag { /* Runtime temp data for bGPdata */ typedef struct bGPdata_Runtime { + struct ARegion *ar; /* last region where drawing was originated */ void *sbuffer; /* stroke buffer (can hold GP_STROKE_BUFFER_MAX) */ /* GP Object drawing */ |