From 37eb40122ca6fbce5b2746d1b8511417a0c5936b Mon Sep 17 00:00:00 2001 From: Andrzej Kapolka Date: Thu, 18 Sep 2014 13:05:57 -0700 Subject: [PATCH] Tiny tweak to weight loading: only replace lowest weight if the new weight is greater. --- libraries/fbx/src/FBXReader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/fbx/src/FBXReader.cpp b/libraries/fbx/src/FBXReader.cpp index 3c65540e57..3b9a340ed2 100644 --- a/libraries/fbx/src/FBXReader.cpp +++ b/libraries/fbx/src/FBXReader.cpp @@ -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;