From 9d254fa17aca7f45a297e8fa289c5423030144d6 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 13 Jan 2020 12:00:44 +0100 Subject: Refactor: Make construction of resolved RNA path reusable It is somewhat different from RNA_path_resolve_property_full(), mainly since it's properly setting array index from the f-curve. --- source/blender/blenkernel/BKE_animsys.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/blenkernel/BKE_animsys.h') diff --git a/source/blender/blenkernel/BKE_animsys.h b/source/blender/blenkernel/BKE_animsys.h index 963e3158d46..9da17d777cd 100644 --- a/source/blender/blenkernel/BKE_animsys.h +++ b/source/blender/blenkernel/BKE_animsys.h @@ -249,6 +249,10 @@ typedef enum eAnimData_Recalc { ADT_RECALC_ALL = (ADT_RECALC_DRIVERS | ADT_RECALC_ANIM), } eAnimData_Recalc; +bool BKE_animsys_store_rna_setting(struct PointerRNA *ptr, + const char *rna_path, + const int array_index, + struct PathResolvedRNA *r_result); bool BKE_animsys_read_rna_setting(struct PathResolvedRNA *anim_rna, float *r_value); bool BKE_animsys_write_rna_setting(struct PathResolvedRNA *anim_rna, const float value); -- cgit v1.2.3