Anim: made object param of BKE_animdata_id_is_animated() const

No functional changes.
This commit is contained in:
2019-11-26 17:56:59 +01:00
parent f18ad385df
commit b21648ab36
2 changed files with 2 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ bool BKE_animdata_set_action(struct ReportList *reports, struct ID *id, struct b
void BKE_animdata_free(struct ID *id, const bool do_id_user);
/* Return true if the ID-block has non-empty AnimData. */
bool BKE_animdata_id_is_animated(struct ID *id);
bool BKE_animdata_id_is_animated(const struct ID *id);
/* Copy AnimData */
struct AnimData *BKE_animdata_copy(struct Main *bmain, struct AnimData *adt, const int flag);

View File

@@ -283,7 +283,7 @@ void BKE_animdata_free(ID *id, const bool do_id_user)
}
}
bool BKE_animdata_id_is_animated(struct ID *id)
bool BKE_animdata_id_is_animated(const struct ID *id)
{
if (id == NULL) {
return false;