2.5:
authorNicholas Bishop <nicholasbishop@gmail.com>
Sun, 16 Aug 2009 23:06:16 +0000 (23:06 +0000)
committerNicholas Bishop <nicholasbishop@gmail.com>
Sun, 16 Aug 2009 23:06:16 +0000 (23:06 +0000)
* Fixed a few warnings (unused vars, missing forward struct)

source/blender/editors/include/ED_anim_api.h
source/blender/editors/space_nla/nla_draw.c

index 879589236ce8dedc894cbe0bd647d2205262de12..179f362b13f6c9f4379921c4e2255ce10f69f084 100644 (file)
@@ -46,6 +46,8 @@ struct bActionGroup;
 struct FCurve;
 struct FModifier;
 
+struct uiBlock;
+
 /* ************************************************ */
 /* ANIMATION CHANNEL FILTERING */
 /* anim_filter.c */
index 931775f1a6e53970b667123cbcbbf3c6336d4e7b..3a0e150050b8d7dec20c06862f76e8b0e566c746 100644 (file)
@@ -845,7 +845,7 @@ void draw_nla_channel_list (bContext *C, bAnimContext *ac, SpaceNla *snla, ARegi
        int filter;
        
        View2D *v2d= &ar->v2d;
-       float x= 0.0f, y= 0.0f;
+       float y= 0.0f;
        int items, height;
        
        /* build list of channels to draw */
@@ -879,7 +879,6 @@ void draw_nla_channel_list (bContext *C, bAnimContext *ac, SpaceNla *snla, ARegi
                for (ale= anim_data.first; ale; ale= ale->next) {
                        const float yminc= (float)(y - NLACHANNEL_HEIGHT_HALF);
                        const float ymaxc= (float)(y + NLACHANNEL_HEIGHT_HALF);
-                       const float ydatac= (float)(y - 7);
                        
                        /* check if visible */
                        if ( IN_RANGE(yminc, v2d->cur.ymin, v2d->cur.ymax) ||