/* set all/none/invert select */ void set_gplayer_frame_selection (bGPDlayer *gpl, short mode) { /* error checking */ if (gpl == NULL) return; /* now call the standard function */ select_gpencil_frames(gpl, mode); }
/* set all/none/invert select */ void set_gplayer_frame_selection (bGPDlayer *gpl, short mode) { /* error checking */ if (gpl == NULL) return; /* convert mode to select_mode */ switch (mode) { case 2: mode= SELECT_INVERT; break; case 1: mode= SELECT_ADD; break; case 0: mode= SELECT_SUBTRACT; break; default: return; } /* now call the standard function */ select_gpencil_frames (gpl, mode); }