From 36121a1bdcd8b0122996d9125e0cd4972dd51ff0 Mon Sep 17 00:00:00 2001 From: Antonioya Date: Thu, 20 Dec 2018 16:52:03 +0100 Subject: 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 --- source/blender/makesdna/DNA_gpencil_types.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/makesdna/DNA_gpencil_types.h') 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 */ -- cgit v1.2.3