(no commit message)
[blender.git] / source / blender / editors / space_node / drawnode.c
index bd5292e5154fb011320485a1b4eaceabf9871b43..6c0cc15559cdcfa43702ad38989c87a76025737c 100644 (file)
@@ -1472,6 +1472,18 @@ static void node_composit_buts_splitviewer(uiLayout *layout, bContext *UNUSED(C)
        uiItemR(col, ptr, "factor", 0, NULL, ICON_NONE);
 }
 
+static void node_composit_buts_double_edge_mask(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
+{
+       uiLayout *col;
+
+       col= uiLayoutColumn(layout, 0);
+
+       uiItemL(col, "Inner Edge:", ICON_NONE);
+       uiItemR(col, ptr, "inner_mode", 0, "", ICON_NONE);
+       uiItemL(col, "Buffer Edge:", ICON_NONE);
+       uiItemR(col, ptr, "edge_mode", 0, "", ICON_NONE);
+}
+
 static void node_composit_buts_map_value(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 {
        uiLayout *sub, *col;
@@ -1926,6 +1938,9 @@ static void node_composit_set_butfunc(bNodeType *ntype)
                case CMP_NODE_ID_MASK:
                        ntype->uifunc= node_composit_buts_id_mask;
                        break;
+               case CMP_NODE_DOUBLEEDGEMASK:
+                       ntype->uifunc= node_composit_buts_double_edge_mask;
+                       break;
                case CMP_NODE_MATH:
                        ntype->uifunc= node_buts_math;
                        break;