diff options
author | Joshua Leung <aligorith@gmail.com> | 2008-10-05 15:49:09 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2008-10-05 15:49:09 +0400 |
commit | 5c74db4e4e004acf5e49c8627c59e0d95d35e4ae (patch) | |
tree | e224efe41bf795e43cb8d923c5f017986054253f /source/blender/include | |
parent | af7033bae4a21bdb6d2a87937ef6c96eea7851ad (diff) |
Grease Pencil:
* Separated duplicate methods out into several functions
* Added copy/paste for gp-frames in Action Editor. Only strokes that are appropriate for the spacetype that the destination layer belongs to will be added to avoid wasted memory usage. Otherwise, was impossible to move sketches between views/layers (which was intended for PyAPI access that didn't get done).
Note: there will currently still be an extra gp-frame created, even if the current no strokes got pasted. There's commented out code which would delete it, but somehow that causes errors, so better to be safe for now.
Diffstat (limited to 'source/blender/include')
-rw-r--r-- | source/blender/include/BDR_gpencil.h | 4 | ||||
-rw-r--r-- | source/blender/include/BIF_editaction.h | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/include/BDR_gpencil.h b/source/blender/include/BDR_gpencil.h index 9b9294b0343..82263c8cda7 100644 --- a/source/blender/include/BDR_gpencil.h +++ b/source/blender/include/BDR_gpencil.h @@ -57,10 +57,13 @@ struct bGPDframe *gpencil_frame_addnew(struct bGPDlayer *gpl, int cframe); struct bGPDlayer *gpencil_layer_addnew(struct bGPdata *gpd); struct bGPdata *gpencil_data_addnew(void); +struct bGPDframe *gpencil_frame_duplicate(struct bGPDframe *src); +struct bGPDlayer *gpencil_layer_duplicate(struct bGPDlayer *src); struct bGPdata *gpencil_data_duplicate(struct bGPdata *gpd); struct bGPdata *gpencil_data_getactive(struct ScrArea *sa); short gpencil_data_setactive(struct ScrArea *sa, struct bGPdata *gpd); +struct ScrArea *gpencil_data_findowner(struct bGPdata *gpd); void gpencil_frame_delete_laststroke(struct bGPDframe *gpf); @@ -79,7 +82,6 @@ void gpencil_delete_menu(void); void gpencil_convert_operation(short mode); void gpencil_convert_menu(void); -//short gpencil_paint(short mousebutton); short gpencil_do_paint(struct ScrArea *sa, short mousebutton); #endif /* BDR_GPENCIL_H */ diff --git a/source/blender/include/BIF_editaction.h b/source/blender/include/BIF_editaction.h index 1425cf6a67c..ae330b30d81 100644 --- a/source/blender/include/BIF_editaction.h +++ b/source/blender/include/BIF_editaction.h @@ -201,6 +201,10 @@ void delete_gpencil_layers(void); void delete_gplayer_frames(struct bGPDlayer *gpl); void duplicate_gplayer_frames(struct bGPDlayer *gpd); +void free_gpcopybuf(void); +void copy_gpdata(void); +void paste_gpdata(void); + void snap_gplayer_frames(struct bGPDlayer *gpl, short mode); void mirror_gplayer_frames(struct bGPDlayer *gpl, short mode); |