diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-09-16 05:35:52 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-09-16 05:35:52 +0400 |
commit | abb37f4152ea8945fdffdc956acdd3002e54db2d (patch) | |
tree | 0e8200b6bb31654553b52e24e22a49ca1ed5c98a /source/blender/editors/space_outliner | |
parent | 7e2977b051d6aecd8effe89f11db5373bc0dc3b1 (diff) |
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).
Diffstat (limited to 'source/blender/editors/space_outliner')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_edit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_outliner/outliner_edit.c b/source/blender/editors/space_outliner/outliner_edit.c index 6d0dc365317..559fb6f932e 100644 --- a/source/blender/editors/space_outliner/outliner_edit.c +++ b/source/blender/editors/space_outliner/outliner_edit.c @@ -1102,7 +1102,7 @@ static void tree_element_to_path(TreeElement *te, TreeStoreElem *tselem, /* item is part of an array, so must set the array_index */ *array_index = te->index; } - else if (RNA_property_array_length(ptr, prop)) { + else if (RNA_property_array_check(prop)) { /* entire array was selected, so keyframe all */ *flag |= KSP_FLAG_WHOLE_ARRAY; } |