[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [38845] branches/soc-2011-pepper/source/ blender/editors/gpencil/editaction_gpencil.c: Removing some unused code - old gp editing stuff
Joshua Leung
aligorith at gmail.com
Sat Jul 30 07:07:35 CEST 2011
Revision: 38845
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=38845
Author: aligorith
Date: 2011-07-30 05:07:34 +0000 (Sat, 30 Jul 2011)
Log Message:
-----------
Removing some unused code - old gp editing stuff
Modified Paths:
--------------
branches/soc-2011-pepper/source/blender/editors/gpencil/editaction_gpencil.c
Modified: branches/soc-2011-pepper/source/blender/editors/gpencil/editaction_gpencil.c
===================================================================
--- branches/soc-2011-pepper/source/blender/editors/gpencil/editaction_gpencil.c 2011-07-30 05:04:49 UTC (rev 38844)
+++ branches/soc-2011-pepper/source/blender/editors/gpencil/editaction_gpencil.c 2011-07-30 05:07:34 UTC (rev 38845)
@@ -209,54 +209,6 @@
}
}
-#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 */
More information about the Bf-blender-cvs
mailing list