updated despill node to incorperate changes from Xavier Thomas's patch #18012

This commit is contained in:
2010-03-12 18:47:35 +00:00
parent 0249d26ca7
commit 85066b5e05
4 changed files with 230 additions and 42 deletions

View File

@@ -803,10 +803,26 @@ static void node_composit_buts_color_spill(uiLayout *layout, bContext *C, Pointe
{
uiLayout *row, *col;
col =uiLayoutColumn(layout, 0);
uiItemR(col, NULL, 0, ptr, "factor", 0);
row= uiLayoutRow(col, 0);
uiItemL(layout, "Despill Channel:", 0);
row =uiLayoutRow(layout,0);
uiItemR(row, NULL, 0, ptr, "channel", UI_ITEM_R_EXPAND);
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, "ratio", UI_ITEM_R_SLIDER);
uiItemR(col, NULL, 0, ptr, "unspill", 0);
if (RNA_enum_get(ptr, "unspill")== 1) {
uiItemR(col, NULL, 0, ptr, "unspill_red", UI_ITEM_R_SLIDER);
uiItemR(col, NULL, 0, ptr, "unspill_green", UI_ITEM_R_SLIDER);
uiItemR(col, NULL, 0, ptr, "unspill_blue", UI_ITEM_R_SLIDER);
}
}
static void node_composit_buts_chroma_matte(uiLayout *layout, bContext *C, PointerRNA *ptr)