diff options
author | Jeroen Bakker <jeroen@blender.org> | 2021-03-19 16:26:24 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-03-19 19:11:47 +0300 |
commit | e5ffefe606092c848e25894ccead21f0de42510f (patch) | |
tree | 8c8ce3f367ca0c2637f3ec5d4cb3f4e9c9c50d42 /source/blender/compositor/intern/COM_Converter.cc | |
parent | b5f70d92c25693e05c8ecbd79c76e5bb35a7ceb5 (diff) |
Cleanup: Use enum class for DataType.
Diffstat (limited to 'source/blender/compositor/intern/COM_Converter.cc')
-rw-r--r-- | source/blender/compositor/intern/COM_Converter.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/compositor/intern/COM_Converter.cc b/source/blender/compositor/intern/COM_Converter.cc index 91439f54710..d5bce636b8c 100644 --- a/source/blender/compositor/intern/COM_Converter.cc +++ b/source/blender/compositor/intern/COM_Converter.cc @@ -428,22 +428,22 @@ NodeOperation *COM_convert_data_type(const NodeOperationOutput &from, const Node const DataType src_data_type = from.getDataType(); const DataType dst_data_type = to.getDataType(); - if (src_data_type == COM_DT_VALUE && dst_data_type == COM_DT_COLOR) { + if (src_data_type == DataType::Value && dst_data_type == DataType::Color) { return new ConvertValueToColorOperation(); } - if (src_data_type == COM_DT_VALUE && dst_data_type == COM_DT_VECTOR) { + if (src_data_type == DataType::Value && dst_data_type == DataType::Vector) { return new ConvertValueToVectorOperation(); } - if (src_data_type == COM_DT_COLOR && dst_data_type == COM_DT_VALUE) { + if (src_data_type == DataType::Color && dst_data_type == DataType::Value) { return new ConvertColorToValueOperation(); } - if (src_data_type == COM_DT_COLOR && dst_data_type == COM_DT_VECTOR) { + if (src_data_type == DataType::Color && dst_data_type == DataType::Vector) { return new ConvertColorToVectorOperation(); } - if (src_data_type == COM_DT_VECTOR && dst_data_type == COM_DT_VALUE) { + if (src_data_type == DataType::Vector && dst_data_type == DataType::Value) { return new ConvertVectorToValueOperation(); } - if (src_data_type == COM_DT_VECTOR && dst_data_type == COM_DT_COLOR) { + if (src_data_type == DataType::Vector && dst_data_type == DataType::Color) { return new ConvertVectorToColorOperation(); } |