GP: Changes in API to make internal update
authorAntonioya <blendergit@gmail.com>
Thu, 20 Dec 2018 15:52:03 +0000 (16:52 +0100)
committerAntonioya <blendergit@gmail.com>
Thu, 20 Dec 2018 15:52:42 +0000 (16:52 +0100)
commit36121a1bdcd8b0122996d9125e0cd4972dd51ff0
treee9cf70c206d0f0d10d2b69529d69c4d1509f3c0d
parentd08db7aef06764392aeac7a70d66cf414aa8fa59
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/draw/engines/gpencil/gpencil_cache_utils.c
source/blender/makesdna/DNA_gpencil_types.h
source/blender/makesrna/intern/rna_gpencil.c