diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:17:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:21:24 +0300 |
commit | e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch) | |
tree | 8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/collada/AnimationClipExporter.cpp | |
parent | b3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff) |
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
Diffstat (limited to 'source/blender/collada/AnimationClipExporter.cpp')
-rw-r--r-- | source/blender/collada/AnimationClipExporter.cpp | 45 |
1 files changed, 23 insertions, 22 deletions
diff --git a/source/blender/collada/AnimationClipExporter.cpp b/source/blender/collada/AnimationClipExporter.cpp index 4a4ad6f7fab..5868c24e6cd 100644 --- a/source/blender/collada/AnimationClipExporter.cpp +++ b/source/blender/collada/AnimationClipExporter.cpp @@ -20,30 +20,31 @@ void AnimationClipExporter::exportAnimationClips(Scene *sce) { - openLibrary(); - std::map<std::string, COLLADASW::ColladaAnimationClip *> clips; + openLibrary(); + std::map<std::string, COLLADASW::ColladaAnimationClip *> clips; - std::vector<std::vector<std::string>>::iterator anim_meta_entry; - for (anim_meta_entry = anim_meta.begin(); anim_meta_entry != anim_meta.end(); ++anim_meta_entry) { - std::vector<std::string> entry = *anim_meta_entry; - std::string action_id = entry[0]; - std::string action_name = entry[1]; + std::vector<std::vector<std::string>>::iterator anim_meta_entry; + for (anim_meta_entry = anim_meta.begin(); anim_meta_entry != anim_meta.end(); + ++anim_meta_entry) { + std::vector<std::string> entry = *anim_meta_entry; + std::string action_id = entry[0]; + std::string action_name = entry[1]; - std::map<std::string, COLLADASW::ColladaAnimationClip *>::iterator it = clips.find(action_name); - if (it == clips.end()) - { - COLLADASW::ColladaAnimationClip *clip = new COLLADASW::ColladaAnimationClip(action_name); - clips[action_name] = clip; - } - COLLADASW::ColladaAnimationClip *clip = clips[action_name]; - clip->setInstancedAnimation(action_id); - } + std::map<std::string, COLLADASW::ColladaAnimationClip *>::iterator it = clips.find( + action_name); + if (it == clips.end()) { + COLLADASW::ColladaAnimationClip *clip = new COLLADASW::ColladaAnimationClip(action_name); + clips[action_name] = clip; + } + COLLADASW::ColladaAnimationClip *clip = clips[action_name]; + clip->setInstancedAnimation(action_id); + } - std::map<std::string, COLLADASW::ColladaAnimationClip *>::iterator clips_it; - for (clips_it = clips.begin(); clips_it != clips.end(); clips_it++) { - COLLADASW::ColladaAnimationClip *clip = (COLLADASW::ColladaAnimationClip *)clips_it->second; - addAnimationClip(*clip); - } + std::map<std::string, COLLADASW::ColladaAnimationClip *>::iterator clips_it; + for (clips_it = clips.begin(); clips_it != clips.end(); clips_it++) { + COLLADASW::ColladaAnimationClip *clip = (COLLADASW::ColladaAnimationClip *)clips_it->second; + addAnimationClip(*clip); + } - closeLibrary(); + closeLibrary(); } |