diff options
author | Ton Roosendaal <ton@blender.org> | 2006-11-16 14:55:05 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-11-16 14:55:05 +0300 |
commit | 68f9b95ee8fc2d547f2ba7a874f5776fecc8ea50 (patch) | |
tree | de2c943fb85d80979b1a6fed37e4d83cfa55c247 | |
parent | ca6824a640c09bb6a009ffa80b23dec6ccef36a4 (diff) |
Bug/patch #5244, by Juho
The pulldown options for adding new Matte compo nodes.
-rw-r--r-- | source/blender/src/header_node.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/source/blender/src/header_node.c b/source/blender/src/header_node.c index d639d9b0bea..5ee9a7c1dcf 100644 --- a/source/blender/src/header_node.c +++ b/source/blender/src/header_node.c @@ -372,6 +372,22 @@ static uiBlock *node_add_groupmenu(void *arg_unused) return block; } +static uiBlock *node_add_mattemenu(void *arg_unused) +{ + SpaceNode *snode= curarea->spacedata.first; + uiBlock *block; + + block= uiNewBlock(&curarea->uiblocks, "node_add_mattemenu", UI_EMBOSSP, UI_HELV, G.curscreen->mainwin); + uiBlockSetButmFunc(block, do_node_addmenu, NULL); + + node_make_addmenu(snode, NODE_CLASS_MATTE, block); + + uiBlockSetDirection(block, UI_RIGHT); + uiTextBoundsBlock(block, 60); + + return block; +} + static uiBlock *node_addmenu(void *arg_unused) { SpaceNode *snode= curarea->spacedata.first; @@ -398,6 +414,7 @@ static uiBlock *node_addmenu(void *arg_unused) uiDefIconTextBlockBut(block, node_add_filtermenu, NULL, ICON_RIGHTARROW_THIN, "Filter", 0, yco-=20, 120, 19, ""); uiDefIconTextBlockBut(block, node_add_convertermenu, NULL, ICON_RIGHTARROW_THIN, "Convertor", 0, yco-=20, 120, 19, ""); uiDefIconTextBlockBut(block, node_add_groupmenu, NULL, ICON_RIGHTARROW_THIN, "Group", 0, yco-=20, 120, 19, ""); + uiDefIconTextBlockBut(block, node_add_mattemenu, NULL, ICON_RIGHTARROW_THIN, "Matte", 0, yco-=20, 120, 19, ""); } else uiDefBut(block, SEPR, 0, "", 0, yco-=6, menuwidth, 6, NULL, 0.0, 0.0, 0, 0, ""); |