From a15b3c4d111613993eca23d5f99600c2052469e7 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 11 Apr 2014 11:25:41 +1000 Subject: Code cleanup: use bool --- source/blender/blenkernel/BKE_animsys.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source/blender/blenkernel/BKE_animsys.h') diff --git a/source/blender/blenkernel/BKE_animsys.h b/source/blender/blenkernel/BKE_animsys.h index a0ec6c7757f..80d2750fe82 100644 --- a/source/blender/blenkernel/BKE_animsys.h +++ b/source/blender/blenkernel/BKE_animsys.h @@ -48,7 +48,7 @@ struct AnimMapper; /* AnimData API */ /* Check if the given ID-block can have AnimData */ -short id_type_can_have_animdata(struct ID *id); +bool id_type_can_have_animdata(struct ID *id); /* Get AnimData from the given ID-block */ struct AnimData *BKE_animdata_from_id(struct ID *id); @@ -57,7 +57,7 @@ struct AnimData *BKE_animdata_from_id(struct ID *id); struct AnimData *BKE_id_add_animdata(struct ID *id); /* Set active action used by AnimData from the given ID-block */ -short BKE_animdata_set_action(struct ReportList *reports, struct ID *id, struct bAction *act); +bool BKE_animdata_set_action(struct ReportList *reports, struct ID *id, struct bAction *act); /* Free AnimData */ void BKE_free_animdata(struct ID *id); @@ -66,7 +66,7 @@ void BKE_free_animdata(struct ID *id); struct AnimData *BKE_copy_animdata(struct AnimData *adt, const bool do_action); /* Copy AnimData */ -int BKE_copy_animdata_id(struct ID *id_to, struct ID *id_from, const bool do_action); +bool BKE_copy_animdata_id(struct ID *id_to, struct ID *id_from, const bool do_action); /* Copy AnimData Actions */ void BKE_copy_animdata_id_action(struct ID *id); @@ -106,12 +106,12 @@ void BKE_keyingsets_free(struct ListBase *list); /* Fix all the paths for the the given ID + Action */ void BKE_action_fix_paths_rename(struct ID *owner_id, struct bAction *act, const char *prefix, const char *oldName, - const char *newName, int oldSubscript, int newSubscript, int verify_paths); + const char *newName, int oldSubscript, int newSubscript, bool verify_paths); /* Fix all the paths for the given ID+AnimData */ void BKE_animdata_fix_paths_rename(struct ID *owner_id, struct AnimData *adt, struct ID *ref_id, const char *prefix, const char *oldName, const char *newName, int oldSubscript, int newSubscript, - int verify_paths); + bool verify_paths); /* Fix all the paths for the entire database... */ void BKE_all_animdata_fix_paths_rename(ID *ref_id, const char *prefix, const char *oldName, const char *newName); -- cgit v1.2.3