From a77a18693d37636fe070fa2db264d1ab16817e8d Mon Sep 17 00:00:00 2001 From: iamAdrianIusca Date: Thu, 23 Apr 2020 22:37:41 +0300 Subject: [PATCH] fix the whitespaces --- code/PostProcessing/LimitBoneWeightsProcess.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/code/PostProcessing/LimitBoneWeightsProcess.cpp b/code/PostProcessing/LimitBoneWeightsProcess.cpp index 8d43c948e..41cd25724 100644 --- a/code/PostProcessing/LimitBoneWeightsProcess.cpp +++ b/code/PostProcessing/LimitBoneWeightsProcess.cpp @@ -151,7 +151,8 @@ void LimitBoneWeightsProcess::ProcessMesh(aiMesh* pMesh) } // clear weight count for all bone - for (unsigned int a = 0; a < pMesh->mNumBones; ++a) { + for (unsigned int a = 0; a < pMesh->mNumBones; ++a) + { pMesh->mBones[a]->mNumWeights = 0; } @@ -159,9 +160,9 @@ void LimitBoneWeightsProcess::ProcessMesh(aiMesh* pMesh) for (unsigned int a = 0; a < vertexWeights.size(); ++a) { const VertexWeightArray &vw = vertexWeights[a]; - for (const Weight *it = vw.begin(); it != vw.end(); ++it) + for (const Weight* it = vw.begin(); it != vw.end(); ++it) { - aiBone *bone = pMesh->mBones[it->mBone]; + aiBone* bone = pMesh->mBones[it->mBone]; bone->mWeights[bone->mNumWeights++] = aiVertexWeight(a, it->mWeight); } } @@ -171,7 +172,7 @@ void LimitBoneWeightsProcess::ProcessMesh(aiMesh* pMesh) for (unsigned int readBone = 0; readBone < pMesh->mNumBones; ++readBone) { - aiBone *bone = pMesh->mBones[readBone]; + aiBone* bone = pMesh->mBones[readBone]; if (bone->mNumWeights > 0) { pMesh->mBones[writeBone++] = bone; @@ -184,7 +185,6 @@ void LimitBoneWeightsProcess::ProcessMesh(aiMesh* pMesh) pMesh->mNumBones = writeBone; if (!DefaultLogger::isNullLogger()) { - ASSIMP_LOG_INFO_F("Removed ", removed, " weights. Input bones: ", old_bones, ". Output bones: ", - pMesh->mNumBones); + ASSIMP_LOG_INFO_F("Removed ", removed, " weights. Input bones: ", old_bones, ". Output bones: ", pMesh->mNumBones); } }