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 Heimlich <matt.heimlich@gmail.com>2014-05-07 18:20:17 +0400
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2014-05-07 18:43:59 +0400
commit3fbc984b069fed441cccdd3416ec71e064235e36 (patch)
tree1c95f9d57457069eb3918deb727fc62b4c83dee5 /source/blender/compositor/nodes/COM_MathNode.cpp
parent8b8d5a441f5815e83f83bacf8023e2cc3fbb2a04 (diff)
Nodes: add absolute value operation to all math nodes
Reviewed By: dingto, brecht Differential Revision: https://developer.blender.org/D507
Diffstat (limited to 'source/blender/compositor/nodes/COM_MathNode.cpp')
-rw-r--r--source/blender/compositor/nodes/COM_MathNode.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/compositor/nodes/COM_MathNode.cpp b/source/blender/compositor/nodes/COM_MathNode.cpp
index 42a8cb032ce..ac1c2b3c159 100644
--- a/source/blender/compositor/nodes/COM_MathNode.cpp
+++ b/source/blender/compositor/nodes/COM_MathNode.cpp
@@ -83,6 +83,9 @@ void MathNode::convertToOperations(NodeConverter &converter, const CompositorCon
case 17: /* Modulo */
operation = new MathModuloOperation();
break;
+ case 18: /* Absolute Value */
+ operation = new MathAbsoluteOperation();
+ break;
}
if (operation) {