1
0
mirror of synced 2025-02-20 20:51:35 +01:00

Fix assimp error for bones with indices and no weights

This commit is contained in:
KillzXGaming 2019-07-16 18:41:05 -04:00
parent 9e01d29127
commit 1978197afb

View File

@ -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++)