GP: New Python update API functions (WIP)
authorAntonioya <blendergit@gmail.com>
Thu, 20 Dec 2018 11:35:06 +0000 (12:35 +0100)
committerAntonioya <blendergit@gmail.com>
Thu, 20 Dec 2018 11:37:12 +0000 (12:37 +0100)
commite79f401ffa7d5354dde01073bbb4b7dd742fd32b
tree208a8959c598e295b14106317aba0c725bff3b09
parentc02f67fa8ae56c8b9e5015b0228de9844a015b71
GP: New Python update API functions (WIP)

For strokes:

myframe.strokes.update(mystroke)

For datablock:

gpencil = bpy.data.grease_pencil['gpencil']
gpencil.update()

Still need a manual refresh of viewport.
source/blender/makesrna/intern/rna_gpencil.c