diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-02-06 05:33:18 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-02-06 05:33:18 +0300 |
commit | 3560f5c1e64e89d345fb2640bb502a433348e4b7 (patch) | |
tree | 81459f472d83aa60444268ec2569030c9ff1db5d /source/blender/compositor/nodes/COM_ColorCorrectionNode.cpp | |
parent | f10825d573c2f64d090c2dd94d94a018b9e93d21 (diff) |
Cleanup: compare with zero for flag checks
This is done almost everywhere already,
use this more straightforward convention.
Diffstat (limited to 'source/blender/compositor/nodes/COM_ColorCorrectionNode.cpp')
-rw-r--r-- | source/blender/compositor/nodes/COM_ColorCorrectionNode.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/compositor/nodes/COM_ColorCorrectionNode.cpp b/source/blender/compositor/nodes/COM_ColorCorrectionNode.cpp index 3c2bf0aad07..92b334fddb9 100644 --- a/source/blender/compositor/nodes/COM_ColorCorrectionNode.cpp +++ b/source/blender/compositor/nodes/COM_ColorCorrectionNode.cpp @@ -32,9 +32,9 @@ void ColorCorrectionNode::convertToOperations(NodeConverter &converter, ColorCorrectionOperation *operation = new ColorCorrectionOperation(); operation->setData((NodeColorCorrection *)editorNode->storage); - operation->setRedChannelEnabled((editorNode->custom1 & 1) > 0); - operation->setGreenChannelEnabled((editorNode->custom1 & 2) > 0); - operation->setBlueChannelEnabled((editorNode->custom1 & 4) > 0); + operation->setRedChannelEnabled((editorNode->custom1 & 1) != 0); + operation->setGreenChannelEnabled((editorNode->custom1 & 2) != 0); + operation->setBlueChannelEnabled((editorNode->custom1 & 4) != 0); converter.addOperation(operation); converter.mapInputSocket(getInputSocket(0), operation->getInputSocket(0)); |