svn merge ^/trunk/blender -r48147:48153
[blender.git] / source / blender / editors / space_node / drawnode.c
index bce63b889509dd0b47c822ad91c42ec997f7f3cb..56b763d0773cb376c5addfb96cba1a976d7395fd 100644 (file)
@@ -1769,8 +1769,13 @@ static void node_composit_buts_dilateerode(uiLayout *layout, bContext *UNUSED(C)
 {
        uiItemR(layout, ptr, "type", 0, NULL, ICON_NONE);
        uiItemR(layout, ptr, "distance", 0, NULL, ICON_NONE);
-       if (RNA_enum_get(ptr, "type") == CMP_NODE_DILATEERODE_DISTANCE_THRESH) {
-               uiItemR(layout, ptr, "edge", 0, NULL, ICON_NONE);
+       switch (RNA_enum_get(ptr, "type")) {
+               case CMP_NODE_DILATEERODE_DISTANCE_THRESH:
+                       uiItemR(layout, ptr, "edge", 0, NULL, ICON_NONE);
+                       break;
+               case CMP_NODE_DILATEERODE_DISTANCE_FEATHER:
+                       uiItemR(layout, ptr, "falloff", 0, NULL, ICON_NONE);
+                       break;
        }
 }