Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/mask/mask_editaction.c
| Context not available. | |||||
| /* Frame Editing Tools */ | /* Frame Editing Tools */ | ||||
| /* Delete selected frames */ | /* Delete selected frames */ | ||||
| void ED_masklayer_frames_delete(MaskLayer *masklay) | bool ED_masklayer_frames_delete(MaskLayer *masklay) | ||||
| { | { | ||||
| MaskLayerShape *masklay_shape, *masklay_shape_next; | MaskLayerShape *masklay_shape, *masklay_shape_next; | ||||
| bool modified = false; | |||||
| /* error checking */ | /* error checking */ | ||||
| if (masklay == NULL) | if (masklay == NULL) | ||||
| return; | return false; | ||||
| /* check for frames to delete */ | /* check for frames to delete */ | ||||
| for (masklay_shape = masklay->splines_shapes.first; masklay_shape; masklay_shape = masklay_shape_next) { | for (masklay_shape = masklay->splines_shapes.first; masklay_shape; masklay_shape = masklay_shape_next) { | ||||
| masklay_shape_next = masklay_shape->next; | masklay_shape_next = masklay_shape->next; | ||||
| if (masklay_shape->flag & MASK_SHAPE_SELECT) | if (masklay_shape->flag & MASK_SHAPE_SELECT) { | ||||
| BKE_mask_layer_shape_unlink(masklay, masklay_shape); | BKE_mask_layer_shape_unlink(masklay, masklay_shape); | ||||
| modified = true; | |||||
| } | |||||
| } | } | ||||
| return modified; | |||||
| } | } | ||||
| /* Duplicate selected frames from given mask-layer */ | /* Duplicate selected frames from given mask-layer */ | ||||
| Context not available. | |||||