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-07 22:36:35 +0300
committerManuel Castilla <manzanillawork@gmail.com>2021-10-08 02:29:02 +0300
commit12a5a605572d742335a4978966444d393792cd28 (patch)
treef06fa16602c175982ca2e5d6ec5b55f387a98cbc /source/blender/compositor/operations/COM_DotproductOperation.cc
parenta808c5ae65e8a9fd2271274cbba3038846e5ffee (diff)
Cleanup: Use `_` suffix for non-public members in Compositor
To follow the style guide.
Diffstat (limited to 'source/blender/compositor/operations/COM_DotproductOperation.cc')
-rw-r--r--source/blender/compositor/operations/COM_DotproductOperation.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/compositor/operations/COM_DotproductOperation.cc b/source/blender/compositor/operations/COM_DotproductOperation.cc
index 86df465ca31..ef309392d4d 100644
--- a/source/blender/compositor/operations/COM_DotproductOperation.cc
+++ b/source/blender/compositor/operations/COM_DotproductOperation.cc
@@ -26,20 +26,20 @@ DotproductOperation::DotproductOperation()
this->addInputSocket(DataType::Vector);
this->addOutputSocket(DataType::Value);
this->set_canvas_input_index(0);
- m_input1Operation = nullptr;
- m_input2Operation = nullptr;
+ input1Operation_ = nullptr;
+ input2Operation_ = nullptr;
flags.can_be_constant = true;
}
void DotproductOperation::initExecution()
{
- m_input1Operation = this->getInputSocketReader(0);
- m_input2Operation = this->getInputSocketReader(1);
+ input1Operation_ = this->getInputSocketReader(0);
+ input2Operation_ = this->getInputSocketReader(1);
}
void DotproductOperation::deinitExecution()
{
- m_input1Operation = nullptr;
- m_input2Operation = nullptr;
+ input1Operation_ = nullptr;
+ input2Operation_ = nullptr;
}
/** \todo current implementation is the inverse of a dot-product. not 'logically' correct
@@ -51,8 +51,8 @@ void DotproductOperation::executePixelSampled(float output[4],
{
float input1[4];
float input2[4];
- m_input1Operation->readSampled(input1, x, y, sampler);
- m_input2Operation->readSampled(input2, x, y, sampler);
+ input1Operation_->readSampled(input1, x, y, sampler);
+ input2Operation_->readSampled(input2, x, y, sampler);
output[0] = -(input1[0] * input2[0] + input1[1] * input2[1] + input1[2] * input2[2]);
}