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:
authorMatt Ebb <matt@mke3.net>2007-03-03 01:02:40 +0300
committerMatt Ebb <matt@mke3.net>2007-03-03 01:02:40 +0300
commit88ed461ef42eab1272b1b5de0bcddce4101ea330 (patch)
tree8ab2b24ed03e4fa6497ad4ccb455aeb7800201b5 /source/blender/src/drawnode.c
parentcf75e5b78cf197ce24551db2d084be90adecfb78 (diff)
* Compo:
Added the curve options buttons (clipping, vector handles, etc) to the time node
Diffstat (limited to 'source/blender/src/drawnode.c')
-rw-r--r--source/blender/src/drawnode.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/source/blender/src/drawnode.c b/source/blender/src/drawnode.c
index f55b040f771..0f53e8d16d4 100644
--- a/source/blender/src/drawnode.c
+++ b/source/blender/src/drawnode.c
@@ -1150,21 +1150,23 @@ static int node_composit_buts_time(uiBlock *block, bNodeTree *ntree, bNode *node
if(block) {
CurveMapping *cumap= node->storage;
short dx= (butr->xmax-butr->xmin)/2;
+ rctf *curvebutr;
+
+ memcpy(&curvebutr, &butr, sizeof(rctf));
+ curvebutr->ymin += 26;
+
+ curvemap_buttons(block, node->storage, 's', B_NODE_EXEC+node->nr, B_REDR, curvebutr);
cumap->flag |= CUMA_DRAW_CFRA;
if(node->custom1<node->custom2)
cumap->black[0]= (float)(CFRA - node->custom1)/(float)(node->custom2-node->custom1);
- uiDefBut(block, BUT_CURVE, B_NODE_EXEC+node->nr, "",
- butr->xmin, butr->ymin+24, butr->xmax-butr->xmin, butr->ymax-butr->ymin-24,
- node->storage, 0.0f, 1.0f, 0, 0, "");
-
uiBlockBeginAlign(block);
uiDefButS(block, NUM, B_NODE_EXEC+node->nr, "Sta:",
- butr->xmin, butr->ymin, dx, 19,
+ butr->xmin, butr->ymin-22, dx, 19,
&node->custom1, 1.0, 20000.0, 0, 0, "Start frame");
uiDefButS(block, NUM, B_NODE_EXEC+node->nr, "End:",
- butr->xmin+dx, butr->ymin, dx, 19,
+ butr->xmin+dx, butr->ymin-22, dx, 19,
&node->custom2, 1.0, 20000.0, 0, 0, "End frame");
}