Skip to content

Commit

Permalink
Reduntant Conditions in Normalization removed
Browse files Browse the repository at this point in the history
  • Loading branch information
akulagrawal committed May 20, 2018
1 parent b752869 commit f1b663f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/COLLADA2GLTFWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1625,7 +1625,7 @@ bool COLLADA2GLTF::Writer::writeController(const COLLADAFW::Controller* controll
maxweight = *weights[0];
minweight = *weights[0];
}
for (size_t i = 0; i < weights.size(); i++) {
for (size_t i = 1; i < weights.size(); i++) {
maxweight = std::max(maxweight, *weights[i]);
minweight = std::min(minweight, *weights[i]);
}
Expand Down

0 comments on commit f1b663f

Please sign in to comment.