~ubuntu-branches/ubuntu/trusty/blender/trusty-proposed

« back to all changes in this revision

Viewing changes to source/blender/editors/space_graph/graph_edit.c

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2013-08-14 10:43:49 UTC
  • mfrom: (14.2.19 sid)
  • Revision ID: package-import@ubuntu.com-20130814104349-t1d5mtwkphp12dyj
Tags: 2.68a-3
* Upload to unstable
* debian/: python3.3 Depends simplified
  - debian/control: python3.3 Depends dropped
    for blender-data package
  - 0001-blender_thumbnailer.patch refreshed
* debian/control: libavcodec b-dep versioning dropped

Show diffs side-by-side

added added

removed removed

Lines of Context:
609
609
        return OPERATOR_FINISHED;
610
610
}
611
611
 
612
 
static int graphkeys_click_insert_invoke(bContext *C, wmOperator *op, wmEvent *evt)
 
612
static int graphkeys_click_insert_invoke(bContext *C, wmOperator *op, const wmEvent *event)
613
613
{
614
614
        bAnimContext ac;
615
615
        ARegion *ar;
625
625
        ar = ac.ar;
626
626
        v2d = &ar->v2d;
627
627
        
628
 
        mval[0] = (evt->x - ar->winrct.xmin);
629
 
        mval[1] = (evt->y - ar->winrct.ymin);
 
628
        mval[0] = (event->x - ar->winrct.xmin);
 
629
        mval[1] = (event->y - ar->winrct.ymin);
630
630
        
631
631
        UI_view2d_region_to_view(v2d, mval[0], mval[1], &x, &y);
632
632
        
835
835
        return OPERATOR_FINISHED;
836
836
}
837
837
 
838
 
static int graphkeys_duplicate_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event))
 
838
static int graphkeys_duplicate_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(event))
839
839
{
840
840
        graphkeys_duplicate_exec(C, op);
841
841
 
1190
1190
 
1191
1191
#endif //WITH_AUDASPACE
1192
1192
 
1193
 
static int graphkeys_sound_bake_invoke(bContext *C, wmOperator *op, wmEvent *event)
 
1193
static int graphkeys_sound_bake_invoke(bContext *C, wmOperator *op, const wmEvent *event)
1194
1194
{
1195
1195
        bAnimContext ac;
1196
1196
 
1745
1745
        /* identifiers */
1746
1746
        ot->name = "Euler Discontinuity Filter";
1747
1747
        ot->idname = "GRAPH_OT_euler_filter";
1748
 
        ot->description = "Fixes the most common causes of gimbal lock in the selected Euler Rotation F-Curves";
 
1748
        ot->description = "Fix large jumps and flips in the selected "
 
1749
                          "Euler Rotation F-Curves arising from rotation "
 
1750
                          "values being clipped when baking physics";
1749
1751
        
1750
1752
        /* api callbacks */
1751
1753
        ot->exec = graphkeys_euler_filter_exec;
2132
2134
/* ******************** Add F-Modifier Operator *********************** */
2133
2135
 
2134
2136
/* present a special customised popup menu for this, with some filtering */
2135
 
static int graph_fmodifier_add_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event))
 
2137
static int graph_fmodifier_add_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(event))
2136
2138
{
2137
2139
        wmOperatorType *ot = WM_operatortype_find("GRAPH_OT_fmodifier_add", 1);
2138
2140
        uiPopupMenu *pup;
2196
2198
                
2197
2199
                /* add F-Modifier of specified type to active F-Curve, and make it the active one */
2198
2200
                fcm = add_fmodifier(&fcu->modifiers, type);
2199
 
                if (fcm)
 
2201
                if (fcm) {
2200
2202
                        set_active_fmodifier(&fcu->modifiers, fcm);
 
2203
                }
2201
2204
                else {
2202
2205
                        BKE_report(op->reports, RPT_ERROR, "Modifier could not be added (see console for details)");
2203
2206
                        break;