diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-05-17 17:44:15 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-05-17 17:44:15 +0400 |
commit | 979f6bab9c1aba27b8d018d1481987d841f68ee1 (patch) | |
tree | 162419d475bf68326b3b5e88b25f27057fee6831 /source/blender/compositor/intern/COM_Converter.cpp | |
parent | fe0d1a381003408dedcd3142a727c77806617150 (diff) |
style cleanup: braces, compositor
Diffstat (limited to 'source/blender/compositor/intern/COM_Converter.cpp')
-rw-r--r-- | source/blender/compositor/intern/COM_Converter.cpp | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/source/blender/compositor/intern/COM_Converter.cpp b/source/blender/compositor/intern/COM_Converter.cpp index 56b1da97df8..ac57bf1cadc 100644 --- a/source/blender/compositor/intern/COM_Converter.cpp +++ b/source/blender/compositor/intern/COM_Converter.cpp @@ -361,15 +361,20 @@ void Converter::convertDataType(SocketConnection* connection, ExecutionSystem *s NodeOperation * converter = NULL; if (fromDatatype == COM_DT_VALUE && toDatatype == COM_DT_COLOR) { converter = new ConvertValueToColourProg(); - } else if (fromDatatype == COM_DT_VALUE && toDatatype == COM_DT_VECTOR) { + } + else if (fromDatatype == COM_DT_VALUE && toDatatype == COM_DT_VECTOR) { converter = new ConvertValueToVectorOperation(); - } else if (fromDatatype == COM_DT_COLOR && toDatatype == COM_DT_VALUE) { + } + else if (fromDatatype == COM_DT_COLOR && toDatatype == COM_DT_VALUE) { converter = new ConvertColourToValueProg(); - } else if (fromDatatype == COM_DT_COLOR && toDatatype == COM_DT_VECTOR) { + } + else if (fromDatatype == COM_DT_COLOR && toDatatype == COM_DT_VECTOR) { converter = new ConvertColorToVectorOperation(); - } else if (fromDatatype == COM_DT_VECTOR && toDatatype == COM_DT_VALUE) { + } + else if (fromDatatype == COM_DT_VECTOR && toDatatype == COM_DT_VALUE) { converter = new ConvertVectorToValueOperation(); - } else if (fromDatatype == COM_DT_VECTOR && toDatatype == COM_DT_COLOR) { + } + else if (fromDatatype == COM_DT_VECTOR && toDatatype == COM_DT_COLOR) { converter = new ConvertVectorToColorOperation(); } if (converter != NULL) { @@ -418,7 +423,8 @@ void Converter::convertResolution(SocketConnection *connection, ExecutionSystem scaleY = toHeight/fromHeight; if (scaleX < scaleY) { scaleX = scaleY; - } else { + } + else { scaleY = scaleX; } break; @@ -435,7 +441,7 @@ void Converter::convertResolution(SocketConnection *connection, ExecutionSystem NodeOperation *first = NULL; SocketConnection *c; ScaleOperation * scaleOperation = NULL; - if(doScale) { + if (doScale) { scaleOperation = new ScaleOperation(); first = scaleOperation; SetValueOperation * sxop = new SetValueOperation(); |