From abb37f4152ea8945fdffdc956acdd3002e54db2d Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 16 Sep 2013 01:35:52 +0000 Subject: replace RNA_property_array_length with RNA_property_array_check where the length of the array is only used to check if the property is an array or not. (this isnt reliable since arrays can be zero length). --- source/blender/editors/animation/anim_ipo_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/animation/anim_ipo_utils.c') diff --git a/source/blender/editors/animation/anim_ipo_utils.c b/source/blender/editors/animation/anim_ipo_utils.c index 21941c7ed62..d3e6d8f474f 100644 --- a/source/blender/editors/animation/anim_ipo_utils.c +++ b/source/blender/editors/animation/anim_ipo_utils.c @@ -132,7 +132,7 @@ int getname_anim_fcurve(char *name, ID *id, FCurve *fcu) propname = RNA_property_ui_name(prop); /* Array Index - only if applicable */ - if (RNA_property_array_length(&ptr, prop)) { + if (RNA_property_array_check(prop)) { char c = RNA_property_array_item_char(prop, fcu->array_index); /* we need to write the index to a temp buffer (in py syntax) */ -- cgit v1.2.3