fix the whitespaces

pull/3042/head
iamAdrianIusca 2020-04-23 22:41:22 +03:00
parent d02be05862
commit d777070eb1
1 changed files with 2 additions and 4 deletions

View File

@ -137,14 +137,12 @@ void LimitBoneWeightsProcess::ProcessMesh(aiMesh* pMesh)
// and renormalize the weights // and renormalize the weights
float sum = 0.0f; float sum = 0.0f;
for (const Weight* it = vit->begin(); it != vit->end(); ++it) for (const Weight* it = vit->begin(); it != vit->end(); ++it) {
{
sum += it->mWeight; sum += it->mWeight;
} }
if (0.0f != sum) { if (0.0f != sum) {
const float invSum = 1.0f / sum; const float invSum = 1.0f / sum;
for (Weight* it = vit->begin(); it != vit->end(); ++it) for (Weight* it = vit->begin(); it != vit->end(); ++it) {
{
it->mWeight *= invSum; it->mWeight *= invSum;
} }
} }