Fix assimp error for bones with indices and no weights
This commit is contained in:
parent
9e01d29127
commit
1978197afb
@ -975,7 +975,7 @@ namespace Bfres.Structs
|
||||
//Check weights. If they are all 1. If they are then they aren't necessary
|
||||
if (ob.VertexSkinCount == 1 || ForceSkinCount && ForcedSkinAmount == 1)
|
||||
{
|
||||
bool UseWeights = ob.vertices.Any(o => o.boneWeights[0] != 1);
|
||||
bool UseWeights = ob.vertices.Any(o => o.boneWeights.Count > 0);
|
||||
if (!UseWeights)
|
||||
{
|
||||
for (int v = 0; v < ob.vertices.Count; v++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user