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.
This commit is contained in:
2009-04-10 13:16:50 +00:00
parent 6593bbaca2
commit a4c4ee2f99
2 changed files with 33 additions and 2 deletions

View File

@@ -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);
}