Skip to content

Commit

Permalink
Merge pull request #188 from LeeRiva/lrdev4
Browse files Browse the repository at this point in the history
Trivial whitespace change
  • Loading branch information
robertosfield authored Feb 27, 2024
2 parents 8f1ece6 + 97beb20 commit 0d2d31d
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/assimp/SceneConverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1342,8 +1342,8 @@ void SceneConverter::processAnimations()
unsigned numUniquePositions = 1;
for(unsigned int si = 1; si < nodeAnim->mNumPositionKeys; ++si)
{
auto& prev = nodeAnim->mPositionKeys[si-1];
auto& curr = nodeAnim->mPositionKeys[si];
auto& prev = nodeAnim->mPositionKeys[si-1];
auto& curr = nodeAnim->mPositionKeys[si];
if ((std::fabs(prev.mValue.x - curr.mValue.x) > epsilion) ||
(std::fabs(prev.mValue.y - curr.mValue.y) > epsilion) ||
(std::fabs(prev.mValue.z - curr.mValue.z) > epsilion))
Expand All @@ -1356,7 +1356,7 @@ void SceneConverter::processAnimations()
if (numUniquePositions <= 1)
{
positions.resize(1);
auto& positionKey = nodeAnim->mPositionKeys[0];
auto& positionKey = nodeAnim->mPositionKeys[0];
positions[0].time = positionKey.mTime * timeScale;
positions[0].value.set(positionKey.mValue.x, positionKey.mValue.y, positionKey.mValue.z);
}
Expand All @@ -1365,7 +1365,7 @@ void SceneConverter::processAnimations()
positions.resize(nodeAnim->mNumPositionKeys);
for(unsigned int pi = 0; pi < nodeAnim->mNumPositionKeys; ++pi)
{
auto& positionKey = nodeAnim->mPositionKeys[pi];
auto& positionKey = nodeAnim->mPositionKeys[pi];
positions[pi].time = positionKey.mTime * timeScale;
positions[pi].value.set(positionKey.mValue.x, positionKey.mValue.y, positionKey.mValue.z);
}
Expand All @@ -1377,8 +1377,8 @@ void SceneConverter::processAnimations()
unsigned numUniqueRotations = 1;
for(unsigned int si = 1; si < nodeAnim->mNumRotationKeys; ++si)
{
auto& prev = nodeAnim->mRotationKeys[si-1];
auto& curr = nodeAnim->mRotationKeys[si];
auto& prev = nodeAnim->mRotationKeys[si-1];
auto& curr = nodeAnim->mRotationKeys[si];
if ((std::fabs(prev.mValue.x - curr.mValue.x) > epsilion) ||
(std::fabs(prev.mValue.y - curr.mValue.y) > epsilion) ||
(std::fabs(prev.mValue.z - curr.mValue.z) > epsilion) ||
Expand All @@ -1392,7 +1392,7 @@ void SceneConverter::processAnimations()
if (numUniqueRotations <= 1)
{
rotations.resize(1);
auto& rotationKey = nodeAnim->mRotationKeys[0];
auto& rotationKey = nodeAnim->mRotationKeys[0];
rotations[0].time = rotationKey.mTime * timeScale;
rotations[0].value.set(rotationKey.mValue.x, rotationKey.mValue.y, rotationKey.mValue.z, rotationKey.mValue.w);
}
Expand All @@ -1401,7 +1401,7 @@ void SceneConverter::processAnimations()
rotations.resize(nodeAnim->mNumRotationKeys);
for(unsigned int ri = 0; ri < nodeAnim->mNumRotationKeys; ++ri)
{
auto& rotationKey = nodeAnim->mRotationKeys[ri];
auto& rotationKey = nodeAnim->mRotationKeys[ri];
rotations[ri].time = rotationKey.mTime * timeScale;
rotations[ri].value.set(rotationKey.mValue.x, rotationKey.mValue.y, rotationKey.mValue.z, rotationKey.mValue.w);
}
Expand All @@ -1413,8 +1413,8 @@ void SceneConverter::processAnimations()
unsigned numUniqueScales = 1;
for(unsigned int si = 1; si < nodeAnim->mNumScalingKeys; ++si)
{
auto& prev = nodeAnim->mScalingKeys[si-1];
auto& curr = nodeAnim->mScalingKeys[si];
auto& prev = nodeAnim->mScalingKeys[si-1];
auto& curr = nodeAnim->mScalingKeys[si];
if ((std::fabs(prev.mValue.x - curr.mValue.x) > epsilion) ||
(std::fabs(prev.mValue.y - curr.mValue.y) > epsilion) ||
(std::fabs(prev.mValue.z - curr.mValue.z) > epsilion))
Expand All @@ -1426,7 +1426,7 @@ void SceneConverter::processAnimations()
if (numUniqueScales <= 1)
{
scales.resize(1);
auto& scalingKey = nodeAnim->mScalingKeys[0];
auto& scalingKey = nodeAnim->mScalingKeys[0];
scales[0].time = scalingKey.mTime * timeScale;
scales[0].value.set(scalingKey.mValue.x, scalingKey.mValue.y, scalingKey.mValue.z);
}
Expand All @@ -1435,7 +1435,7 @@ void SceneConverter::processAnimations()
scales.resize(nodeAnim->mNumScalingKeys);
for(unsigned int si = 0; si < nodeAnim->mNumScalingKeys; ++si)
{
auto& scalingKey = nodeAnim->mScalingKeys[si];
auto& scalingKey = nodeAnim->mScalingKeys[si];
scales[si].time = scalingKey.mTime * timeScale;
scales[si].value.set(scalingKey.mValue.x, scalingKey.mValue.y, scalingKey.mValue.z);
}
Expand Down

0 comments on commit 0d2d31d

Please sign in to comment.