Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-11-24 19:56:02 +0300
committerTon Roosendaal <ton@blender.org>2006-11-24 19:56:02 +0300
commitc3adb61dcc6b550efa1df0eb5c8a4729bd47350a (patch)
tree3213f421a1f78581b03d00f3b79c541676d3f75a /source/blender/src/interface_draw.c
parente600fdb882aaa39949c920a13df5ec0281075da2 (diff)
Composite Time node usablity improvement:
- now draws green 'current frame' line - when Time Node is active, hotkey I will allow inserting a value on current frame.
Diffstat (limited to 'source/blender/src/interface_draw.c')
-rw-r--r--source/blender/src/interface_draw.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/src/interface_draw.c b/source/blender/src/interface_draw.c
index 84ae130110a..de95b1264b4 100644
--- a/source/blender/src/interface_draw.c
+++ b/source/blender/src/interface_draw.c
@@ -2191,6 +2191,15 @@ static void ui_draw_but_CURVE(uiBut *but)
glVertex2f(but->x1 + zoomx*(-offsx), but->y2);
glEnd();
+ /* cfra option */
+ if(cumap->flag & CUMA_DRAW_CFRA) {
+ glColor3ub(0x60, 0xc0, 0x40);
+ glBegin(GL_LINES);
+ glVertex2f(but->x1 + zoomx*(cumap->black[0]-offsx), but->y1);
+ glVertex2f(but->x1 + zoomx*(cumap->black[0]-offsx), but->y2);
+ glEnd();
+ }
+
/* the curve */
BIF_ThemeColor(TH_TEXT);
glBegin(GL_LINE_STRIP);