diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-03-14 14:15:10 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-03-14 14:15:10 +0400 |
commit | cf3b3a1ba2159792fad7cc0c8ccb98a855534823 (patch) | |
tree | d47f68221eb1ff3cd9102186a977eb2249939736 /source/blender/compositor/nodes/COM_CompositorNode.cpp | |
parent | 0159647ada64591e4edbcb1284cf499fc2ae9c09 (diff) |
Code cleanup: replace magic constant used for alpha ignore flag with a define.
Diffstat (limited to 'source/blender/compositor/nodes/COM_CompositorNode.cpp')
-rw-r--r-- | source/blender/compositor/nodes/COM_CompositorNode.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/compositor/nodes/COM_CompositorNode.cpp b/source/blender/compositor/nodes/COM_CompositorNode.cpp index fc4dea8cee3..a78f96adfc6 100644 --- a/source/blender/compositor/nodes/COM_CompositorNode.cpp +++ b/source/blender/compositor/nodes/COM_CompositorNode.cpp @@ -41,10 +41,11 @@ void CompositorNode::convertToOperations(ExecutionSystem *graph, CompositorConte compositorOperation->setSceneName(editorNode->id->name); compositorOperation->setRenderData(context->getRenderData()); compositorOperation->setbNodeTree(context->getbNodeTree()); - compositorOperation->setIgnoreAlpha(editorNode->custom2 & 1); + compositorOperation->setIgnoreAlpha(editorNode->custom2 & CMP_NODE_OUTPUT_IGNORE_ALPHA); imageSocket->relinkConnections(compositorOperation->getInputSocket(0), 0, graph); alphaSocket->relinkConnections(compositorOperation->getInputSocket(1)); depthSocket->relinkConnections(compositorOperation->getInputSocket(2)); graph->addOperation(compositorOperation); addPreviewOperation(graph, context, compositorOperation->getInputSocket(0)); } + |