diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-03-31 13:23:27 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-03-31 13:23:27 +0400 |
commit | 5e4f789173bb998f85a942a6a02cd30cb42f7660 (patch) | |
tree | 26ce40d89338ab67e0476a735e0e144aa4c81a99 /source/blender/editors/mask/mask_editaction.c | |
parent | 851805d84e9d77108f6be6cc1bd35c6c6441068d (diff) |
Code cleanup: use false/true/bool for masking
Diffstat (limited to 'source/blender/editors/mask/mask_editaction.c')
-rw-r--r-- | source/blender/editors/mask/mask_editaction.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/editors/mask/mask_editaction.c b/source/blender/editors/mask/mask_editaction.c index d4ac0338456..547f08653cb 100644 --- a/source/blender/editors/mask/mask_editaction.c +++ b/source/blender/editors/mask/mask_editaction.c @@ -61,30 +61,30 @@ /* Generics - Loopers */ /* Loops over the mask-frames for a mask-layer, and applies the given callback */ -short ED_masklayer_frames_looper(MaskLayer *masklay, Scene *scene, short (*masklay_shape_cb)(MaskLayerShape *, Scene *)) +bool ED_masklayer_frames_looper(MaskLayer *masklay, Scene *scene, short (*masklay_shape_cb)(MaskLayerShape *, Scene *)) { MaskLayerShape *masklay_shape; /* error checker */ if (masklay == NULL) - return 0; + return false; /* do loop */ for (masklay_shape = masklay->splines_shapes.first; masklay_shape; masklay_shape = masklay_shape->next) { /* execute callback */ if (masklay_shape_cb(masklay_shape, scene)) - return 1; + return true; } /* nothing to return */ - return 0; + return false; } /* ****************************************** */ /* Data Conversion Tools */ /* make a listing all the mask-frames in a layer as cfraelems */ -void ED_masklayer_make_cfra_list(MaskLayer *masklay, ListBase *elems, short onlysel) +void ED_masklayer_make_cfra_list(MaskLayer *masklay, ListBase *elems, bool onlysel) { MaskLayerShape *masklay_shape; CfraElem *ce; @@ -95,7 +95,7 @@ void ED_masklayer_make_cfra_list(MaskLayer *masklay, ListBase *elems, short only /* loop through mask-frames, adding */ for (masklay_shape = masklay->splines_shapes.first; masklay_shape; masklay_shape = masklay_shape->next) { - if ((onlysel == 0) || (masklay_shape->flag & MASK_SHAPE_SELECT)) { + if ((onlysel == false) || (masklay_shape->flag & MASK_SHAPE_SELECT)) { ce = MEM_callocN(sizeof(CfraElem), "CfraElem"); ce->cfra = (float)masklay_shape->frame; |