mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 19:36:45 +02:00
Tiny tweak to weight loading: only replace lowest weight if the new weight is
greater.
This commit is contained in:
parent
2d8eb114bc
commit
37eb40122c
1 changed files with 1 additions and 1 deletions
|
@ -1769,7 +1769,7 @@ FBXGeometry extractFBXGeometry(const FBXNode& node, const QVariantHash& mapping)
|
||||||
lowestWeight = weights[k];
|
lowestWeight = weights[k];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (k == 4) {
|
if (k == 4 && weight > lowestWeight) {
|
||||||
// no space for an additional weight; we must replace the lowest
|
// no space for an additional weight; we must replace the lowest
|
||||||
weights[lowestIndex] = weight;
|
weights[lowestIndex] = weight;
|
||||||
extracted.mesh.clusterIndices[it.value()][lowestIndex] = i;
|
extracted.mesh.clusterIndices[it.value()][lowestIndex] = i;
|
||||||
|
|
Loading…
Reference in a new issue