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:
authorRobert Holcomb <bob_holcomb@hotmail.com>2010-03-13 17:47:26 +0300
committerRobert Holcomb <bob_holcomb@hotmail.com>2010-03-13 17:47:26 +0300
commitdfb59dbaa52d413068197176654f76cc84fceab8 (patch)
tree78f25fe9fc7454644a341ee404c332a8db9c309a /source/blender/editors/space_node
parent975cf38d6a78b60b0db899abd5a7dc950df133c5 (diff)
added method to change algorithm used in channel matte node. Limit a channel by another channel or limit by max of remaining channels.
Diffstat (limited to 'source/blender/editors/space_node')
-rw-r--r--source/blender/editors/space_node/drawnode.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/source/blender/editors/space_node/drawnode.c b/source/blender/editors/space_node/drawnode.c
index 16bf52db80f..9f7b01b1cd0 100644
--- a/source/blender/editors/space_node/drawnode.c
+++ b/source/blender/editors/space_node/drawnode.c
@@ -853,13 +853,24 @@ static void node_composit_buts_channel_matte(uiLayout *layout, bContext *C, Poin
{
uiLayout *col, *row;
+ uiItemL(layout, "Color Space:", 0);
row= uiLayoutRow(layout, 0);
uiItemR(row, NULL, 0, ptr, "color_space", UI_ITEM_R_EXPAND);
- row= uiLayoutRow(layout, 0);
+ col=uiLayoutColumn(layout, 0);
+ uiItemL(col, "Key Channel:", 0);
+ row= uiLayoutRow(col, 0);
uiItemR(row, NULL, 0, ptr, "channel", UI_ITEM_R_EXPAND);
- col =uiLayoutColumn(layout, 1);
+ col =uiLayoutColumn(layout, 0);
+
+ uiItemR(col, NULL, 0, ptr, "algorithm", 0);
+ if(RNA_enum_get(ptr, "algorithm")==0) {
+ uiItemL(col, "Limiting Channel:", 0);
+ row=uiLayoutRow(col,0);
+ uiItemR(row, NULL, 0, ptr, "limit_channel", UI_ITEM_R_EXPAND);
+ }
+
uiItemR(col, NULL, 0, ptr, "high", UI_ITEM_R_SLIDER);
uiItemR(col, NULL, 0, ptr, "low", UI_ITEM_R_SLIDER);
}