diff options
author | Joshua Leung <aligorith@gmail.com> | 2010-01-20 02:38:26 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2010-01-20 02:38:26 +0300 |
commit | a8855e2cafafe2acc14f532625cb0dff1815a0f7 (patch) | |
tree | ca9904c34c1b154e311703183d8584e8c6d4807f /source/blender/makesrna/intern/rna_fcurve.c | |
parent | ccb6e1904abf358c0f999019ffd62d407ecc920b (diff) |
Drivers UI: Debug Info
Feature request for ZanQdo, which shows the intermediate values used in driver calculations (i.e. current value of driver, and current value of variables), allowing drivers expressions to be debugged. This is a per-driver setting...
Diffstat (limited to 'source/blender/makesrna/intern/rna_fcurve.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_fcurve.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_fcurve.c b/source/blender/makesrna/intern/rna_fcurve.c index b6b05eb4896..7cf5a9708b0 100644 --- a/source/blender/makesrna/intern/rna_fcurve.c +++ b/source/blender/makesrna/intern/rna_fcurve.c @@ -856,6 +856,11 @@ static void rna_def_channeldriver(BlenderRNA *brna) RNA_def_property_ui_text(prop, "Variables", "Properties acting as inputs for this driver."); rna_def_channeldriver_variables(brna, prop); + /* Settings */ + prop= RNA_def_property(srna, "show_debug_info", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_boolean_sdna(prop, NULL, "flag", DRIVER_FLAG_SHOWDEBUG); + RNA_def_property_ui_text(prop, "Show Debug Info", "Show intermediate values for the driver calculations to allow debugging of drivers."); + /* Functions */ RNA_api_drivers(srna); } |