diff options
author | Joshua Leung <aligorith@gmail.com> | 2008-10-19 07:41:49 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2008-10-19 07:41:49 +0400 |
commit | 72e5ede546cd5b17e4dec2f5b9949a9a58c3f7b5 (patch) | |
tree | 3bb3030eaa14bc5530283fa9c91ff12adb394442 /source | |
parent | a71cb63ce68e797c362cd344834f1aef72039bbf (diff) |
Few tiny cleanups in Action Editor code (comments only)
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/src/drawaction.c | 5 | ||||
-rw-r--r-- | source/blender/src/editaction.c | 7 |
2 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/src/drawaction.c b/source/blender/src/drawaction.c index 0d2c8dce43d..c3a8b7c3690 100644 --- a/source/blender/src/drawaction.c +++ b/source/blender/src/drawaction.c @@ -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 */ diff --git a/source/blender/src/editaction.c b/source/blender/src/editaction.c index 5ec52870f41..0f0e38084b6 100644 --- a/source/blender/src/editaction.c +++ b/source/blender/src/editaction.c @@ -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; |