Grease Pencil py-api

* new/remove for GPencil frames/strokes/
* add/pop for points
* clear for frame/layer & grease_pencil
* copy for frame

+ fix for free_gpencil_frames() not clearing the active frame
This commit is contained in:
2012-10-07 20:07:30 +00:00
parent 9fcb7cd520
commit 7b37e78c91
3 changed files with 271 additions and 18 deletions

View File

@@ -87,6 +87,7 @@ void free_gpencil_frames(bGPDlayer *gpl)
free_gpencil_strokes(gpf);
BLI_freelinkN(&gpl->frames, gpf);
}
gpl->actframe = NULL;
}
/* Free all of the gp-layers for a viewport (list should be &gpd->layers or so) */