Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2016-04-05 00:02:43 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-04-05 00:38:57 +0300
commit82b0a9e36900c8aeb374078bd4cb3a7d7f8295e6 (patch)
treea3fc9e26f72de53c47de2637e52164a24a875f6f /source/blender/blenkernel/BKE_fcurve.h
parent65f279b7705a14ffdbd79f1835504344af40c283 (diff)
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.
Diffstat (limited to 'source/blender/blenkernel/BKE_fcurve.h')
-rw-r--r--source/blender/blenkernel/BKE_fcurve.h4
1 files changed, 4 insertions, 0 deletions
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 *************** */