From 82b0a9e36900c8aeb374078bd4cb3a7d7f8295e6 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 5 Apr 2016 07:02:43 +1000 Subject: PyDriver support for all RNA property types Support for driver variables that don't resolve to numbers, eg: objects, bones, curves... etc. Without this, Python expressions to access this data needed to use an absolute path from `bpy.data`, however this is inconvenient, breaks easily (based on naming) and wouldn't set the dependencies correctly. --- source/blender/blenkernel/BKE_fcurve.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/blenkernel/BKE_fcurve.h') diff --git a/source/blender/blenkernel/BKE_fcurve.h b/source/blender/blenkernel/BKE_fcurve.h index 3db104aea73..664338214bf 100644 --- a/source/blender/blenkernel/BKE_fcurve.h +++ b/source/blender/blenkernel/BKE_fcurve.h @@ -99,6 +99,10 @@ void driver_variable_name_validate(struct DriverVar *dvar); struct DriverVar *driver_add_new_variable(struct ChannelDriver *driver); float driver_get_variable_value(struct ChannelDriver *driver, struct DriverVar *dvar); +bool driver_get_variable_property( + struct ChannelDriver *driver, struct DriverTarget *dtar, + struct PointerRNA *r_ptr, struct PropertyRNA **r_prop, int *r_index); + float evaluate_driver(struct ChannelDriver *driver, const float evaltime); /* ************** F-Curve Modifiers *************** */ -- cgit v1.2.3