svn merge ^/trunk/blender -r47070:47099
[blender.git] / source / blender / editors / space_node / drawnode.c
index c6a652921fddc5a0c97c41023dd175e6efe6cbea..3c070b4e63790ff30320f41f39816de119b3bd89 100644 (file)
@@ -2389,6 +2389,11 @@ static void node_composit_buts_viewer_but(uiLayout *layout, bContext *UNUSED(C),
        }
 }
 
+static void node_composit_buts_mask(uiLayout *layout, bContext *C, PointerRNA *ptr)
+{
+       uiTemplateID(layout, C, ptr, "mask", NULL, NULL, NULL);
+}
+
 /* only once called */
 static void node_composit_set_butfunc(bNodeType *ntype)
 {
@@ -2578,6 +2583,9 @@ static void node_composit_set_butfunc(bNodeType *ntype)
                        ntype->uifuncbut = node_composit_buts_viewer_but;
                        ntype->uibackdropfunc = node_composit_backdrop_viewer;
                        break;
+               case CMP_NODE_MASK:
+                       ntype->uifunc= node_composit_buts_mask;
+                       break;
 
                default:
                        ntype->uifunc = NULL;