diff options
author | Joshua Leung <aligorith@gmail.com> | 2011-07-30 09:07:34 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2011-07-30 09:07:34 +0400 |
commit | 73183abfa98eeda9fb7deff8165a04ca6a28635d (patch) | |
tree | 8a4d2177d45946f7d9bd177d8412a44ae2c8e002 | |
parent | e9fed9bd8c2f18ed56a1ccfa5a3a0da12827c881 (diff) |
Removing some unused code - old gp editing stuff
-rw-r--r-- | source/blender/editors/gpencil/editaction_gpencil.c | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/source/blender/editors/gpencil/editaction_gpencil.c b/source/blender/editors/gpencil/editaction_gpencil.c index 518a90b2026..e70fd2f9abf 100644 --- a/source/blender/editors/gpencil/editaction_gpencil.c +++ b/source/blender/editors/gpencil/editaction_gpencil.c @@ -209,54 +209,6 @@ void borderselect_gplayer_frames (bGPDlayer *gpl, float min, float max, short se } } -#if 0 // XXX disabled until grease pencil code stabilises again - -/* De-selects or inverts the selection of Layers for a grease-pencil block - * mode: 0 = default behaviour (select all), 1 = test if (de)select all, 2 = invert all - */ -void deselect_gpencil_layers (void *data, short mode) -{ - ListBase act_data = {NULL, NULL}; - bActListElem *ale; - int filter, sel=1; - - /* filter data */ - filter= ACTFILTER_VISIBLE; - actdata_filter(&act_data, filter, data, ACTCONT_GPENCIL); - - /* See if we should be selecting or deselecting */ - if (mode == 1) { - for (ale= act_data.first; ale; ale= ale->next) { - if (sel == 0) - break; - - if (ale->flag & GP_LAYER_SELECT) - sel= 0; - } - } - else - sel= 0; - - /* Now set the flags */ - for (ale= act_data.first; ale; ale= ale->next) { - bGPDlayer *gpl= (bGPDlayer *)ale->data; - - if (mode == 2) - gpl->flag ^= GP_LAYER_SELECT; - else if (sel) - gpl->flag |= GP_LAYER_SELECT; - else - gpl->flag &= ~GP_LAYER_SELECT; - - gpl->flag &= ~GP_LAYER_ACTIVE; - } - - /* Cleanup */ - BLI_freelistN(&act_data); -} - -#endif // XXX disabled until Grease Pencil code stabilises again... - /* ***************************************** */ /* Frame Editing Tools */ |