diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-08-31 06:36:28 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-08-31 07:33:57 +0300 |
commit | d718d6b4493429a1e688e874fd76963f98e3d034 (patch) | |
tree | efc5d34c087b6306571f469eeaf727d9e98d5234 /source/blender/compositor/nodes | |
parent | 29590eec6e21a4e1a2d45221e6dbb5733c354969 (diff) |
Cleanup: Use C style comments for descriptive text
Diffstat (limited to 'source/blender/compositor/nodes')
4 files changed, 10 insertions, 9 deletions
diff --git a/source/blender/compositor/nodes/COM_GlareNode.cc b/source/blender/compositor/nodes/COM_GlareNode.cc index 0537074552a..cd0b5306be1 100644 --- a/source/blender/compositor/nodes/COM_GlareNode.cc +++ b/source/blender/compositor/nodes/COM_GlareNode.cc @@ -46,13 +46,13 @@ void GlareNode::convertToOperations(NodeConverter &converter, case 3: glareoperation = new GlareGhostOperation(); break; - case 2: // streaks + case 2: /* Streaks. */ glareoperation = new GlareStreaksOperation(); break; - case 1: // fog glow + case 1: /* Fog glow. */ glareoperation = new GlareFogGlowOperation(); break; - case 0: // simple star + case 0: /* Simple star. */ glareoperation = new GlareSimpleStarOperation(); break; } diff --git a/source/blender/compositor/nodes/COM_KeyingScreenNode.cc b/source/blender/compositor/nodes/COM_KeyingScreenNode.cc index cbe4f165a45..43574d02d80 100644 --- a/source/blender/compositor/nodes/COM_KeyingScreenNode.cc +++ b/source/blender/compositor/nodes/COM_KeyingScreenNode.cc @@ -38,7 +38,7 @@ void KeyingScreenNode::convertToOperations(NodeConverter &converter, NodeOutput *outputScreen = this->getOutputSocket(0); - // always connect the output image + /* Always connect the output image. */ KeyingScreenOperation *operation = new KeyingScreenOperation(); operation->setMovieClip(clip); operation->setTrackingObject(keyingscreen_data->tracking_object); diff --git a/source/blender/compositor/nodes/COM_ViewLevelsNode.cc b/source/blender/compositor/nodes/COM_ViewLevelsNode.cc index dc454b95080..5a03972c89d 100644 --- a/source/blender/compositor/nodes/COM_ViewLevelsNode.cc +++ b/source/blender/compositor/nodes/COM_ViewLevelsNode.cc @@ -34,7 +34,7 @@ void ViewLevelsNode::convertToOperations(NodeConverter &converter, { NodeInput *input = this->getInputSocket(0); if (input->isLinked()) { - // add preview to inputSocket; + /* Add preview to input-socket. */ /* calculate mean operation */ { diff --git a/source/blender/compositor/nodes/COM_ZCombineNode.cc b/source/blender/compositor/nodes/COM_ZCombineNode.cc index a76049ff249..ddf66740578 100644 --- a/source/blender/compositor/nodes/COM_ZCombineNode.cc +++ b/source/blender/compositor/nodes/COM_ZCombineNode.cc @@ -58,8 +58,9 @@ void ZCombineNode::convertToOperations(NodeConverter &converter, } else { /* XXX custom1 is "use_alpha", what on earth is this supposed to do here?!? */ - // not full anti alias, use masking for Z combine. be aware it uses anti aliasing. - // step 1 create mask + /* not full anti alias, use masking for Z combine. be aware it uses anti aliasing. */ + + /* Step 1 create mask. */ NodeOperation *maskoperation; if (this->getbNode()->custom1) { maskoperation = new MathGreaterThanOperation(); @@ -76,13 +77,13 @@ void ZCombineNode::convertToOperations(NodeConverter &converter, converter.mapInputSocket(getInputSocket(3), maskoperation->getInputSocket(1)); } - // step 2 anti alias mask bit of an expensive operation, but does the trick + /* Step 2 anti alias mask bit of an expensive operation, but does the trick. */ AntiAliasOperation *antialiasoperation = new AntiAliasOperation(); converter.addOperation(antialiasoperation); converter.addLink(maskoperation->getOutputSocket(), antialiasoperation->getInputSocket(0)); - // use mask to blend between the input colors. + /* use mask to blend between the input colors. */ ZCombineMaskOperation *zcombineoperation = this->getbNode()->custom1 ? new ZCombineMaskAlphaOperation() : new ZCombineMaskOperation(); |