mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 16:41:02 +02:00
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:
commit
cb1af4499a
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