Reloaded : Add Kf Anim toggle button in curve panel

When key framing an fx parameter, it's a bad user experience to have
to (open and) go to the fx chain panel to active the animation.

I had chosen to duplicate the toogle button to the curve (in place of just move it from
fx chain), because it's relevant to me to have this functionnaly near the fx chain.
(i'm also thinking to change the chain toogle by modifier+click on chain bulbs someday for both
fx activation state and fx kf anim status)
This commit is contained in:
[d.j.a.y] Jerome Blanchi
2016-08-14 17:49:39 +02:00
parent b4f2c5e2dd
commit bd69490560
3 changed files with 60 additions and 10 deletions

View File

@@ -2473,7 +2473,7 @@ static void vj_kf_reset()
GtkWidget *curve = glade_xml_get_widget_(info->main_window, "curve");
reset_curve( curve );
set_toggle_button( "curve_toggleentry", 0 );
set_toggle_button( "curve_chain_toggleentry", 0 );
set_toggle_button( "curve_toggleentry_param", 0);
update_label_str( "curve_parameter",FX_PARAMETER_DEFAULT_NAME);
}
@@ -3967,7 +3967,7 @@ static gint load_parameter_info()
info->uc.selected_rgbkey = 0;
}
set_toggle_button( "curve_toggleentry", p[ENTRY_KF_STATUS] );
set_toggle_button( "curve_chain_toggleentry", p[ENTRY_KF_STATUS] );
if(info->status_tokens[PLAY_MODE] == MODE_SAMPLE )
{