Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/gpencil/editaction_gpencil.c
| Context not available. | |||||
| /* Frame Editing Tools */ | /* Frame Editing Tools */ | ||||
| /* Delete selected frames */ | /* Delete selected frames */ | ||||
| void ED_gplayer_frames_delete(bGPDlayer *gpl) | bool ED_gplayer_frames_delete(bGPDlayer *gpl) | ||||
| { | { | ||||
| bGPDframe *gpf, *gpfn; | bGPDframe *gpf, *gpfn; | ||||
| bool modified = false; | |||||
| /* error checking */ | /* error checking */ | ||||
| if (gpl == NULL) | if (gpl == NULL) | ||||
| return; | return false; | ||||
| /* check for frames to delete */ | /* check for frames to delete */ | ||||
| for (gpf = gpl->frames.first; gpf; gpf = gpfn) { | for (gpf = gpl->frames.first; gpf; gpf = gpfn) { | ||||
| gpfn = gpf->next; | gpfn = gpf->next; | ||||
| if (gpf->flag & GP_FRAME_SELECT) | if (gpf->flag & GP_FRAME_SELECT) | ||||
| gpencil_layer_delframe(gpl, gpf); | modified |= gpencil_layer_delframe(gpl, gpf); | ||||
| } | } | ||||
| return modified; | |||||
| } | } | ||||
| /* Duplicate selected frames from given gp-layer */ | /* Duplicate selected frames from given gp-layer */ | ||||
| Context not available. | |||||