Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/mask.c
| Context not available. | |||||
| return masklay_shape; | return masklay_shape; | ||||
| } | } | ||||
| void BKE_mask_layer_shape_free(MaskLayerShape *masklay_shape) | bool BKE_mask_layer_shape_free(MaskLayerShape *masklay_shape) | ||||
| { | { | ||||
| if (masklay_shape->data) { | if (masklay_shape->data) { | ||||
| MEM_freeN(masklay_shape->data); | MEM_freeN(masklay_shape->data); | ||||
| Context not available. | |||||
| return masklay_shape_copy; | return masklay_shape_copy; | ||||
| } | } | ||||
| void BKE_mask_layer_shape_unlink(MaskLayer *masklay, MaskLayerShape *masklay_shape) | bool BKE_mask_layer_shape_unlink(MaskLayer *masklay, MaskLayerShape *masklay_shape) | ||||
| { | { | ||||
| BLI_remlink(&masklay->splines_shapes, masklay_shape); | BLI_remlink(&masklay->splines_shapes, masklay_shape); | ||||
| BKE_mask_layer_shape_free(masklay_shape); | return BKE_mask_layer_shape_free(masklay_shape); | ||||
| } | } | ||||
| static int mask_layer_shape_sort_cb(void *masklay_shape_a_ptr, void *masklay_shape_b_ptr) | static int mask_layer_shape_sort_cb(void *masklay_shape_a_ptr, void *masklay_shape_b_ptr) | ||||
| Context not available. | |||||