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:
authorDalai Felinto <dfelinto@gmail.com>2012-11-14 23:53:46 +0400
committerDalai Felinto <dfelinto@gmail.com>2012-11-14 23:53:46 +0400
commit7cfb79256e5cd21405528887b8d3b6b405ebba62 (patch)
treed9673a353431d25a27251233c32cd406f4ce81a5 /source/blender/editors
parent71389d4d74fd1e632ff0e23416d33ca5e63c609d (diff)
Map Range Node (tiles)
this node allows for more control for normalization of the mapped input range. Made during BlenderPRO 2012 - Brasilia, Brazil :) Idea and testing: Daniel Salazar Implementation: yours truly Reviewed by Lukas Toenne and Sergey Sharybin
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/space_node/drawnode.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/editors/space_node/drawnode.c b/source/blender/editors/space_node/drawnode.c
index 8d44da2e367..f808a08d5d2 100644
--- a/source/blender/editors/space_node/drawnode.c
+++ b/source/blender/editors/space_node/drawnode.c
@@ -1887,6 +1887,14 @@ static void node_composit_buts_double_edge_mask(uiLayout *layout, bContext *UNUS
uiItemR(col, ptr, "edge_mode", 0, "", ICON_NONE);
}
+static void node_composit_buts_map_range(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
+{
+ uiLayout *col;
+
+ col = uiLayoutColumn(layout, TRUE);
+ uiItemR(col, ptr, "use_clamp", 0, NULL, ICON_NONE);
+}
+
static void node_composit_buts_map_value(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
{
uiLayout *sub, *col;
@@ -2825,6 +2833,9 @@ static void node_composit_set_butfunc(bNodeType *ntype)
case CMP_NODE_MAP_VALUE:
ntype->uifunc = node_composit_buts_map_value;
break;
+ case CMP_NODE_MAP_RANGE:
+ ntype->uifunc = node_composit_buts_map_range;
+ break;
case CMP_NODE_TIME:
ntype->uifunc = node_buts_time;
break;