diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-24 10:38:07 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-24 10:38:07 +0400 |
commit | ab4a2aaf4a4b2b4e416aa1f113b30362cbe0dec3 (patch) | |
tree | 81af4c18519181490074508dbe9a8d515eab634f /source/blender/collada/AnimationExporter.cpp | |
parent | 5a90ea77bc1333efe4e1e54984a080550ed3f707 (diff) |
style cleanup: follow style guide for formatting of if/for/while loops, and else if's
Diffstat (limited to 'source/blender/collada/AnimationExporter.cpp')
-rw-r--r-- | source/blender/collada/AnimationExporter.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/source/blender/collada/AnimationExporter.cpp b/source/blender/collada/AnimationExporter.cpp index 5b1ad604b50..d6eb406ced7 100644 --- a/source/blender/collada/AnimationExporter.cpp +++ b/source/blender/collada/AnimationExporter.cpp @@ -548,7 +548,8 @@ void AnimationExporter::add_source_parameters(COLLADASW::SourceBase::ParameterNa if ( transform ) { param.push_back("TRANSFORM"); - }else{ //assumes if axis isn't specified all axises are added + } + else { //assumes if axis isn't specified all axises are added param.push_back("X"); param.push_back("Y"); param.push_back("Z"); @@ -592,7 +593,8 @@ void AnimationExporter::get_source_values(BezTriple *bezt, COLLADASW::InputSeman } else if (rotation) { values[1] = RAD2DEGF(bezt->vec[0][1]); - } else { + } + else { values[1] = bezt->vec[0][1]; } break; @@ -607,7 +609,8 @@ void AnimationExporter::get_source_values(BezTriple *bezt, COLLADASW::InputSeman } else if (rotation) { values[1] = RAD2DEGF(bezt->vec[2][1]); - } else { + } + else { values[1] = bezt->vec[2][1]; } break; @@ -858,9 +861,11 @@ std::string AnimationExporter::create_interpolation_source(FCurve *fcu, const st if (fcu->bezt[i].ipo==BEZT_IPO_BEZ) { source.appendValues(BEZIER_NAME); *has_tangents = true; - } else if (fcu->bezt[i].ipo==BEZT_IPO_CONST) { + } + else if (fcu->bezt[i].ipo==BEZT_IPO_CONST) { source.appendValues(STEP_NAME); - } else { // BEZT_IPO_LIN + } + else { // BEZT_IPO_LIN source.appendValues(LINEAR_NAME); } } |