Few tiny cleanups in Action Editor code (comments only)
authorJoshua Leung <aligorith@gmail.com>
Sun, 19 Oct 2008 03:41:49 +0000 (03:41 +0000)
committerJoshua Leung <aligorith@gmail.com>
Sun, 19 Oct 2008 03:41:49 +0000 (03:41 +0000)
source/blender/src/drawaction.c
source/blender/src/editaction.c

index 0d2c8dce43dbb769434c06a0be6bba9ba148a177..c3a8b7c3690814a258721927a0e8b3cbd8506438 100644 (file)
@@ -1220,7 +1220,6 @@ void drawactionspace(ScrArea *sa, void *spacedata)
 {
        bAction *act = NULL;
        Key *key = NULL;
-       bGPdata *gpd = NULL;
        void *data;
        short datatype;
        
@@ -1259,7 +1258,7 @@ void drawactionspace(ScrArea *sa, void *spacedata)
                        key = data;
                        break;
                case ACTCONT_GPENCIL:
-                       gpd = data;
+                       /* currently, 'data' value for grease-pencil is G.curscreen! */
                        break;
        }
        
@@ -1599,7 +1598,7 @@ static void draw_keylist(gla2DDrawInfo *di, ListBase *keys, ListBase *blocks, fl
                        gla2DDrawTranslatePt(di, ak->cfra, ypos, &sc_x, &sc_y);
                        
                        /* draw using icons - old way which is slower but more proven */
-                       if(ak->sel & SELECT) BIF_icon_draw_aspect(sc_x-7, sc_y-6, ICON_SPACE2, 1.0f);
+                       if (ak->sel & SELECT) BIF_icon_draw_aspect(sc_x-7, sc_y-6, ICON_SPACE2, 1.0f);
                        else BIF_icon_draw_aspect(sc_x-7, sc_y-6, ICON_SPACE3, 1.0f);
                        
                        /* draw using OpenGL - slightly uglier but faster */
index 5ec52870f41040e9c8fd0e5b991ef174499ec7d5..0f0e38084b62f5f40f08b59ff912249f3228e3ad 100644 (file)
@@ -529,9 +529,10 @@ static void actdata_filter_gpencil (ListBase *act_data, bScreen *sc, int filter_
        /* check if filtering types are appropriate */
        if ( !(filter_mode & (ACTFILTER_IPOKEYS|ACTFILTER_ONLYICU|ACTFILTER_ACTGROUPED)) ) 
        {
-               /* special hack for fullscreen area (which must be this one then),
-                * so we use the curarea->full as screen to get spaces from, since the
-                * old (pre-fullscreen) screen was stored there...
+               /* special hack for fullscreen area (which must be this one then):
+                *      - we use the curarea->full as screen to get spaces from, since the
+                *        old (pre-fullscreen) screen was stored there...
+                *      - this is needed as all data would otherwise disappear
                 */
                if ((curarea->full) && (curarea->spacetype==SPACE_ACTION))
                        sc= curarea->full;