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:
authorManuel Castilla <manzanillawork@gmail.com>2021-10-14 00:00:50 +0300
committerManuel Castilla <manzanillawork@gmail.com>2021-10-14 00:41:14 +0300
commitea79efef70da14100b591b50dcada819808f20b6 (patch)
tree4faf296870f1ab27ee33fee2b331fdb6b2d2bec4 /source/blender/compositor/operations/COM_DifferenceMatteOperation.cc
parentecb8a574c752068de9f8d9eb98f54db1569df2f7 (diff)
Cleanup: remove `this->` for `m_` prefixed members in Compositor
For cleaning old code style as new code usually omit it.
Diffstat (limited to 'source/blender/compositor/operations/COM_DifferenceMatteOperation.cc')
-rw-r--r--source/blender/compositor/operations/COM_DifferenceMatteOperation.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/source/blender/compositor/operations/COM_DifferenceMatteOperation.cc b/source/blender/compositor/operations/COM_DifferenceMatteOperation.cc
index eb92f0e9905..25004d947aa 100644
--- a/source/blender/compositor/operations/COM_DifferenceMatteOperation.cc
+++ b/source/blender/compositor/operations/COM_DifferenceMatteOperation.cc
@@ -26,20 +26,20 @@ DifferenceMatteOperation::DifferenceMatteOperation()
addInputSocket(DataType::Color);
addOutputSocket(DataType::Value);
- this->m_inputImage1Program = nullptr;
- this->m_inputImage2Program = nullptr;
+ m_inputImage1Program = nullptr;
+ m_inputImage2Program = nullptr;
flags.can_be_constant = true;
}
void DifferenceMatteOperation::initExecution()
{
- this->m_inputImage1Program = this->getInputSocketReader(0);
- this->m_inputImage2Program = this->getInputSocketReader(1);
+ m_inputImage1Program = this->getInputSocketReader(0);
+ m_inputImage2Program = this->getInputSocketReader(1);
}
void DifferenceMatteOperation::deinitExecution()
{
- this->m_inputImage1Program = nullptr;
- this->m_inputImage2Program = nullptr;
+ m_inputImage1Program = nullptr;
+ m_inputImage2Program = nullptr;
}
void DifferenceMatteOperation::executePixelSampled(float output[4],
@@ -50,13 +50,13 @@ void DifferenceMatteOperation::executePixelSampled(float output[4],
float inColor1[4];
float inColor2[4];
- const float tolerance = this->m_settings->t1;
- const float falloff = this->m_settings->t2;
+ const float tolerance = m_settings->t1;
+ const float falloff = m_settings->t2;
float difference;
float alpha;
- this->m_inputImage1Program->readSampled(inColor1, x, y, sampler);
- this->m_inputImage2Program->readSampled(inColor2, x, y, sampler);
+ m_inputImage1Program->readSampled(inColor1, x, y, sampler);
+ m_inputImage2Program->readSampled(inColor2, x, y, sampler);
difference = (fabsf(inColor2[0] - inColor1[0]) + fabsf(inColor2[1] - inColor1[1]) +
fabsf(inColor2[2] - inColor1[2]));