diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-04-10 17:16:50 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-04-10 17:16:50 +0400 |
commit | a4c4ee2f99da48012e1a85d295cf1baf3bec3f95 (patch) | |
tree | c54b282786174e7a712432938794330cc767407e /source/blender/editors/animation/drivers.c | |
parent | 6593bbaca2ceb248426c55e14ceb21bb46553fd1 (diff) |
2.5 Drivers - Widget Colours
* Widgets now get coloured when driven. The colour used is debatable, but I've just set it to a purplish colour so that it's easy to distinguish from animated/keyframes/highlight colours.
* New drivers are given generator F-Curve modifiers by default so that they at least show up in the view.
Diffstat (limited to 'source/blender/editors/animation/drivers.c')
-rw-r--r-- | source/blender/editors/animation/drivers.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/animation/drivers.c b/source/blender/editors/animation/drivers.c index 15aad71f224..ef8ac517e54 100644 --- a/source/blender/editors/animation/drivers.c +++ b/source/blender/editors/animation/drivers.c @@ -93,6 +93,9 @@ FCurve *verify_driver_fcurve (ID *id, const char rna_path[], const int array_ind /* add some new driver data */ fcu->driver= MEM_callocN(sizeof(ChannelDriver), "ChannelDriver"); + /* add simple generator modifier for driver so that there is some visible representation */ + fcurve_add_modifier(fcu, FMODIFIER_TYPE_GENERATOR); + /* just add F-Curve to end of driver list */ BLI_addtail(&adt->drivers, fcu); } |