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:
authorCampbell Barton <ideasman42@gmail.com>2012-08-23 10:48:01 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-08-23 10:48:01 +0400
commit1ab5a4f0edb1e39de4d6adc1f874e2bfcdead243 (patch)
tree3bedae156da6c4f22b32285937277b7a896db442 /source/blender/editors/space_node/drawnode.c
parent45a0287f45e48d2a6224ec73f6d58890344b1ca3 (diff)
despeckle composite node
Diffstat (limited to 'source/blender/editors/space_node/drawnode.c')
-rw-r--r--source/blender/editors/space_node/drawnode.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/editors/space_node/drawnode.c b/source/blender/editors/space_node/drawnode.c
index c1a410317b7..125d5e3be77 100644
--- a/source/blender/editors/space_node/drawnode.c
+++ b/source/blender/editors/space_node/drawnode.c
@@ -1812,6 +1812,15 @@ static void node_composit_buts_inpaint(uiLayout *layout, bContext *UNUSED(C), Po
uiItemR(layout, ptr, "distance", 0, NULL, ICON_NONE);
}
+static void node_composit_buts_despeckle(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
+{
+ uiLayout *col;
+
+ col = uiLayoutColumn(layout, FALSE);
+ uiItemR(col, ptr, "threshold", 0, NULL, ICON_NONE);
+ uiItemR(col, ptr, "threshold_neighbour", 0, NULL, ICON_NONE);
+}
+
static void node_composit_buts_diff_matte(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
{
uiLayout *col;
@@ -2674,6 +2683,9 @@ static void node_composit_set_butfunc(bNodeType *ntype)
case CMP_NODE_INPAINT:
ntype->uifunc = node_composit_buts_inpaint;
break;
+ case CMP_NODE_DESPECKLE:
+ ntype->uifunc = node_composit_buts_despeckle;
+ break;
case CMP_NODE_OUTPUT_FILE:
ntype->uifunc = node_composit_buts_file_output;
ntype->uifuncbut = node_composit_buts_file_output_details;