diff options
author | Antonioya <blendergit@gmail.com> | 2018-12-20 18:52:03 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-12-20 18:52:42 +0300 |
commit | 36121a1bdcd8b0122996d9125e0cd4972dd51ff0 (patch) | |
tree | e9cf70c206d0f0d10d2b69529d69c4d1509f3c0d /source/blender/makesdna/DNA_gpencil_types.h | |
parent | d08db7aef06764392aeac7a70d66cf414aa8fa59 (diff) |
GP: Changes in API to make internal update
Now, the internal data is recalculated when add or remove a point.
The change in the API affect to stroke.points.add() that now requires a datablock parameter. This parameter is required to identify the datablock affected.
For example: stroke.points.add(gpencil, 1) instead of stroke.points.add(1)
This is the second try to fix T59600
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 934ef4a4829..4ed87a487fc 100644 --- a/source/blender/makesdna/DNA_gpencil_types.h +++ b/source/blender/makesdna/DNA_gpencil_types.h @@ -481,6 +481,8 @@ typedef enum eGPdata_Flag { GP_DATA_UV_ADAPTATIVE = (1 << 19), /* Autolock not active layers */ GP_DATA_AUTOLOCK_LAYERS = (1 << 20), + /* Internal flag for python update */ + GP_DATA_PYTHON_UPDATED = (1 << 21), } eGPdata_Flag; /* gpd->onion_flag */ |