Merge pull request #3455 from ey6es/master

Tiny tweak to weight loading: only replace lowest weight if the new weig...
This commit is contained in:
Andrzej Kapolka 2014-09-18 15:05:30 -07:00
commit cb1af4499a

View file

@ -1769,7 +1769,7 @@ FBXGeometry extractFBXGeometry(const FBXNode& node, const QVariantHash& mapping)
lowestWeight = weights[k];
}
}
if (k == 4) {
if (k == 4 && weight > lowestWeight) {
// no space for an additional weight; we must replace the lowest
weights[lowestIndex] = weight;
extracted.mesh.clusterIndices[it.value()][lowestIndex] = i;