From f19585656f62935c93c6b85a0778327d0064fa3a Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Fri, 11 Feb 2022 10:28:59 +0100 Subject: Fix compile warnings. We should change the API of ntree so we can check with a const. I added this as a todo for now and used a const cast. --- source/blender/blenkernel/intern/anim_data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenkernel/intern/anim_data.c') diff --git a/source/blender/blenkernel/intern/anim_data.c b/source/blender/blenkernel/intern/anim_data.c index 6d9d48816b6..0c9202400ad 100644 --- a/source/blender/blenkernel/intern/anim_data.c +++ b/source/blender/blenkernel/intern/anim_data.c @@ -72,7 +72,7 @@ bool id_can_have_animdata(const ID *id) return id_type_can_have_animdata(GS(id->name)); } -AnimData *BKE_animdata_from_id(ID *id) +AnimData *BKE_animdata_from_id(const ID *id) { /* In order for this to work, we assume that the #AnimData pointer is stored * immediately after the given ID-block in the struct, as per IdAdtTemplate. */ -- cgit v1.2.3