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:
authorCampbell Barton <ideasman42@gmail.com>2013-07-19 14:40:43 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-07-19 14:40:43 +0400
commit824ec5a388ca1737418ef4f7d72f1910610a025b (patch)
treec4f60d38770847196acbd0b0f841d5eb3d04d03f /source/blender/compositor/nodes
parentcbe43fd385b4023c98579bcc8608fe115512f065 (diff)
code cleanup: case & brace placement
Diffstat (limited to 'source/blender/compositor/nodes')
-rw-r--r--source/blender/compositor/nodes/COM_GroupNode.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/compositor/nodes/COM_GroupNode.cpp b/source/blender/compositor/nodes/COM_GroupNode.cpp
index 85554d7a7aa..7c0499dc04e 100644
--- a/source/blender/compositor/nodes/COM_GroupNode.cpp
+++ b/source/blender/compositor/nodes/COM_GroupNode.cpp
@@ -183,14 +183,16 @@ void GroupNode::addDefaultOutputOperation(ExecutionSystem &system, OutputSocket
NodeOperation *operation = NULL;
switch (iosock->typeinfo->type) {
- case SOCK_FLOAT: {
+ case SOCK_FLOAT:
+ {
float value = RNA_float_get(&ptr, "default_value");
SetValueOperation *value_op = new SetValueOperation();
value_op->setValue(value);
operation = value_op;
break;
}
- case SOCK_VECTOR: {
+ case SOCK_VECTOR:
+ {
float vector[3];
RNA_float_get_array(&ptr, "default_value", vector);
SetVectorOperation *vector_op = new SetVectorOperation();
@@ -198,7 +200,8 @@ void GroupNode::addDefaultOutputOperation(ExecutionSystem &system, OutputSocket
operation = vector_op;
break;
}
- case SOCK_RGBA: {
+ case SOCK_RGBA:
+ {
float color[4];
RNA_float_get_array(&ptr, "default_value", color);
SetColorOperation *color_op = new SetColorOperation();