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/blender/src/drawaction.c | |
parent | a71cb63ce68e797c362cd344834f1aef72039bbf (diff) |
Few tiny cleanups in Action Editor code (comments only)
Diffstat (limited to 'source/blender/src/drawaction.c')
-rw-r--r-- | source/blender/src/drawaction.c | 5 |
1 files changed, 2 insertions, 3 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 */ |