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:
authorJeroen Bakker <jeroen@blender.org>2021-03-19 16:26:24 +0300
committerJeroen Bakker <jeroen@blender.org>2021-03-19 19:11:47 +0300
commite5ffefe606092c848e25894ccead21f0de42510f (patch)
tree8c8ce3f367ca0c2637f3ec5d4cb3f4e9c9c50d42 /source/blender/compositor/operations/COM_ScaleOperation.cc
parentb5f70d92c25693e05c8ecbd79c76e5bb35a7ceb5 (diff)
Cleanup: Use enum class for DataType.
Diffstat (limited to 'source/blender/compositor/operations/COM_ScaleOperation.cc')
-rw-r--r--source/blender/compositor/operations/COM_ScaleOperation.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/source/blender/compositor/operations/COM_ScaleOperation.cc b/source/blender/compositor/operations/COM_ScaleOperation.cc
index 9ec4e474ccd..b0c9bfb2663 100644
--- a/source/blender/compositor/operations/COM_ScaleOperation.cc
+++ b/source/blender/compositor/operations/COM_ScaleOperation.cc
@@ -37,10 +37,10 @@ BaseScaleOperation::BaseScaleOperation()
ScaleOperation::ScaleOperation() : BaseScaleOperation()
{
- this->addInputSocket(COM_DT_COLOR);
- this->addInputSocket(COM_DT_VALUE);
- this->addInputSocket(COM_DT_VALUE);
- this->addOutputSocket(COM_DT_COLOR);
+ this->addInputSocket(DataType::Color);
+ this->addInputSocket(DataType::Value);
+ this->addInputSocket(DataType::Value);
+ this->addOutputSocket(DataType::Color);
this->setResolutionInputSocketIndex(0);
this->m_inputOperation = nullptr;
this->m_inputXOperation = nullptr;
@@ -112,10 +112,10 @@ bool ScaleOperation::determineDependingAreaOfInterest(rcti *input,
// SCALE ABSOLUTE
ScaleAbsoluteOperation::ScaleAbsoluteOperation() : BaseScaleOperation()
{
- this->addInputSocket(COM_DT_COLOR);
- this->addInputSocket(COM_DT_VALUE);
- this->addInputSocket(COM_DT_VALUE);
- this->addOutputSocket(COM_DT_COLOR);
+ this->addInputSocket(DataType::Color);
+ this->addInputSocket(DataType::Value);
+ this->addInputSocket(DataType::Value);
+ this->addOutputSocket(DataType::Color);
this->setResolutionInputSocketIndex(0);
this->m_inputOperation = nullptr;
this->m_inputXOperation = nullptr;
@@ -203,8 +203,8 @@ bool ScaleAbsoluteOperation::determineDependingAreaOfInterest(rcti *input,
// Absolute fixed size
ScaleFixedSizeOperation::ScaleFixedSizeOperation() : BaseScaleOperation()
{
- this->addInputSocket(COM_DT_COLOR, COM_SC_NO_RESIZE);
- this->addOutputSocket(COM_DT_COLOR);
+ this->addInputSocket(DataType::Color, COM_SC_NO_RESIZE);
+ this->addOutputSocket(DataType::Color);
this->setResolutionInputSocketIndex(0);
this->m_inputOperation = nullptr;
this->m_is_offset = false;