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:
authorThomas Dinges <blender@dingto.org>2009-09-17 00:07:05 +0400
committerThomas Dinges <blender@dingto.org>2009-09-17 00:07:05 +0400
commit90d8088e53293d1f36d9063d5898dd8bd3ddf878 (patch)
treebe0c9fb5b5c3524ae9c040a87b4c18aebfbc40fb
parentf26ac206c9acd9f1593cde2dc822c9e344507e97 (diff)
2.5:
Test Commit, converted Filter Composite Node to use layout engine. :) Will do other Nodes in the next few days.
-rw-r--r--source/blender/editors/space_node/drawnode.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/source/blender/editors/space_node/drawnode.c b/source/blender/editors/space_node/drawnode.c
index 494a68fc918..466d1aaa281 100644
--- a/source/blender/editors/space_node/drawnode.c
+++ b/source/blender/editors/space_node/drawnode.c
@@ -1449,16 +1449,7 @@ static void node_composit_buts_vecblur(uiLayout *layout, PointerRNA *ptr)
static void node_composit_buts_filter(uiLayout *layout, PointerRNA *ptr)
{
- uiBlock *block= uiLayoutFreeBlock(layout);
- bNode *node= ptr->data;
- rctf *butr= &node->butr;
- uiBut *bt;
-
- /* blend type */
- bt=uiDefButS(block, MENU, B_NODE_EXEC, "Soften %x0|Sharpen %x1|Laplace %x2|Sobel %x3|Prewitt %x4|Kirsch %x5|Shadow %x6",
- butr->xmin, butr->ymin, butr->xmax-butr->xmin, 20,
- &node->custom1, 0, 0, 0, 0, "");
- uiButSetFunc(bt, node_but_title_cb, node, bt);
+ uiItemR(layout, "", 0, ptr, "filter_type", 0);
}
static void node_composit_buts_flip(uiLayout *layout, PointerRNA *ptr)