From c596b76ff9f80f0f914a1206698e041da3f03443 Mon Sep 17 00:00:00 2001 From: Akul Agrawal Date: Mon, 21 May 2018 13:15:04 +0530 Subject: [PATCH] Code properly indented --- src/COLLADA2GLTFWriter.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/COLLADA2GLTFWriter.cpp b/src/COLLADA2GLTFWriter.cpp index 4cfc3d74c..5e62dc936 100755 --- a/src/COLLADA2GLTFWriter.cpp +++ b/src/COLLADA2GLTFWriter.cpp @@ -1621,17 +1621,17 @@ bool COLLADA2GLTF::Writer::writeController(const COLLADAFW::Controller* controll int numberOfComponents = GLTF::Accessor::getNumberOfComponents(type); for (size_t i = 0; i < weights.size(); i++) { - float weightSum = 0; - float* weight = weights[i]; - for (size_t j = 0; j < numberOfComponents; j++) { - weightSum = weightSum + std::abs(weight[j]); - } - if (weightSum > 0) { - for (size_t j = 0; j < numberOfComponents; j++) { - weight[j] = weight[j] / weightSum; - } - } - } + float weightSum = 0; + float* weight = weights[i]; + for (size_t j = 0; j < numberOfComponents; j++) { + weightSum = weightSum + std::abs(weight[j]); + } + if (weightSum > 0) { + for (size_t j = 0; j < numberOfComponents; j++) { + weight[j] = weight[j] / weightSum; + } + } + } COLLADAFW::UniqueId meshId = skinController->getSource(); GLTF::Mesh* mesh = _meshInstances[meshId];