F-Curve Modifiers: Basic GUI for Generator Modifier working

* Currently, this only works for the 'Expanded polynomial' mode, but this will be expanded to include the other modes too. Now you can modify the values and interactively see the graph in the view change. 

* Disabled the backdrops (modifier 'panels') temporarily, as ROUNDBOX UI elements currently swallow all events, which is not good.

Note: the code here still uses the old-style UI definition code since the new stuff is still under heavy construction.
This commit is contained in:
2009-03-16 11:11:44 +00:00
parent 89459e4a51
commit ae0f349346
5 changed files with 130 additions and 20 deletions

View File

@@ -766,7 +766,7 @@ void graph_draw_curves (bAnimContext *ac, SpaceIpo *sipo, ARegion *ar, View2DGri
}
/* 2) draw handles and vertices as appropriate based on active */
if ((fcu->modifiers.first) && (fcm) && (fcm->type != FMODIFIER_TYPE_CYCLES)) {
if ( ((fcm) && (fcm->type != FMODIFIER_TYPE_CYCLES)) || (fcu->modifiers.first) ) {
// TODO: need to add code to show these... for cycles modifier, should fall through though...
}
else if ( ((fcu->bezt) || (fcu->fpt)) && (fcu->totvert) ) {