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:
authorMatt Ebb <matt@mke3.net>2010-01-21 03:00:45 +0300
committerMatt Ebb <matt@mke3.net>2010-01-21 03:00:45 +0300
commit3e1783c715201320caf87b3660bd590892277ae2 (patch)
treee596e14a74f2fa86176c4bfd77b7b13326725c4e /source/blender/editors/space_node
parent946cdd8ff6ad6e799c1aeaea9540b599e9648476 (diff)
New Compositor node: Hue Control
Was very quick to do, now re-aquainted with node editor. http://mke3.net/blender/devel/2.5/hue_correct_node.jpg Todo: modes for affecting hue and value on the vertical axis as well as just saturation - or if an enterprising coder wants to give it a go, let me know and I can help :)
Diffstat (limited to 'source/blender/editors/space_node')
-rw-r--r--source/blender/editors/space_node/drawnode.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/editors/space_node/drawnode.c b/source/blender/editors/space_node/drawnode.c
index 3323183cb54..95e7239b50e 100644
--- a/source/blender/editors/space_node/drawnode.c
+++ b/source/blender/editors/space_node/drawnode.c
@@ -935,6 +935,13 @@ static void node_composit_buts_colorbalance(uiLayout *layout, bContext *C, Point
}
+static void node_composit_buts_huecorrect(uiLayout *layout, bContext *C, PointerRNA *ptr)
+{
+ bNode *node= ptr->data;
+
+ uiTemplateCurveMapping(layout, ptr, "mapping", 'h', 0, 0);
+}
+
/* only once called */
static void node_composit_set_butfunc(bNodeType *ntype)
{
@@ -1070,6 +1077,9 @@ static void node_composit_set_butfunc(bNodeType *ntype)
case CMP_NODE_COLORBALANCE:
ntype->uifunc=node_composit_buts_colorbalance;
break;
+ case CMP_NODE_HUECORRECT:
+ ntype->uifunc=node_composit_buts_huecorrect;
+ break;
default:
ntype->uifunc= NULL;
}