Merged changes in the trunk up to revision 32271.
[blender.git] / source / blender / editors / animation / anim_channels_edit.c
index 496d41ae4dc8b631fdec860f5e677a0cfa89661b..a40beeaa0f88da8a6e967070c1bfe6266c50d8c4 100644 (file)
@@ -155,6 +155,7 @@ void ANIM_set_active_channel (bAnimContext *ac, void *data, short datatype, int
                        case ANIMTYPE_DSMESH:
                        {
                                /* need to verify that this data is valid for now */
+                               // XXX: ale may be null!
                                if (ale->adt)
                                        ale->adt->flag |= ADT_UI_ACTIVE;
                        }
@@ -464,7 +465,7 @@ void ANIM_flush_setting_anim_channels (bAnimContext *ac, ListBase *anim_data, bA
                                break;
                        
                        /* store this level as the 'old' level now */
-                       prevLevel= level;
+                       prevLevel= level; // XXX: prevLevel is unused
                }
        }
 }
@@ -1888,7 +1889,6 @@ static int mouse_anim_channels (bAnimContext *ac, float x, int channel_index, sh
 static int animchannels_mouseclick_invoke(bContext *C, wmOperator *op, wmEvent *event)
 {
        bAnimContext ac;
-       Scene *scene;
        ARegion *ar;
        View2D *v2d;
        int mval[2], channel_index;
@@ -1902,7 +1902,6 @@ static int animchannels_mouseclick_invoke(bContext *C, wmOperator *op, wmEvent *
                return OPERATOR_CANCELLED;
                
        /* get useful pointers from animation context data */
-       scene= ac.scene;
        ar= ac.ar;
        v2d= &ar->v2d;