diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-06-04 03:51:48 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-06-04 03:52:20 +0300 |
commit | c13e10a7404ddae1d2ab9dc3d421ad18e8cb01ac (patch) | |
tree | 8906f96fd20a8fe5bd7b973db13fc5dcd663634a /source/blender/collada/AnimationImporter.cpp | |
parent | d62a749fcf4848958d748a4d5ef5c4f1172cd351 (diff) |
Cleanup: clang-format, remove tabs
Diffstat (limited to 'source/blender/collada/AnimationImporter.cpp')
-rw-r--r-- | source/blender/collada/AnimationImporter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/collada/AnimationImporter.cpp b/source/blender/collada/AnimationImporter.cpp index ef6c81efff7..be748110fb9 100644 --- a/source/blender/collada/AnimationImporter.cpp +++ b/source/blender/collada/AnimationImporter.cpp @@ -1376,7 +1376,7 @@ void AnimationImporter::add_bone_animation_sampled(Object *ob, for (int i = 0; i < totcu; i++) { if (i < 4) { add_bezt(newcu[i], fra, qref.quat()[i]); - } + } else if (i < 7) { add_bezt(newcu[i], fra, loc[i - 4]); } @@ -1842,7 +1842,7 @@ Object *AnimationImporter::translate_animation_OLD( if (is_rotation || is_matrix) { if (is_joint) { bPoseChannel *chan = BKE_pose_channel_find_name(ob->pose, bone_name); - chan->rotmode = (is_matrix)? ROT_MODE_QUAT : ROT_MODE_EUL; + chan->rotmode = (is_matrix) ? ROT_MODE_QUAT : ROT_MODE_EUL; } else { ob->rotmode = (is_matrix) ? ROT_MODE_QUAT : ROT_MODE_EUL; |