Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2019-11-26 19:56:59 +0300
committerSybren A. Stüvel <sybren@blender.org>2019-11-26 19:56:59 +0300
commitb21648ab3656986bae1df5897ff16f9d187c9039 (patch)
tree22586544859d5c22ae28a1ca5e8f5a36d9f3911a /source
parentf18ad385dffe70f5e57df00ff9bbb7b42fa05be0 (diff)
Anim: made object param of BKE_animdata_id_is_animated() const
No functional changes.
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/BKE_animsys.h2
-rw-r--r--source/blender/blenkernel/intern/anim_sys.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/BKE_animsys.h b/source/blender/blenkernel/BKE_animsys.h
index 985dce70bdc..d0249cb2b38 100644
--- a/source/blender/blenkernel/BKE_animsys.h
+++ b/source/blender/blenkernel/BKE_animsys.h
@@ -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);
diff --git a/source/blender/blenkernel/intern/anim_sys.c b/source/blender/blenkernel/intern/anim_sys.c
index 6ecfeaffdba..98473c04704 100644
--- a/source/blender/blenkernel/intern/anim_sys.c
+++ b/source/blender/blenkernel/intern/anim_sys.c
@@ -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;