Change GenericObject.GetMaxSkinInfluenceCount() to use boneWeights instead of boneIds as the latter might not be initialized when the function is used. (#631)

Co-authored-by: mctrollin <bla@blub.bla>
This commit is contained in:
rollin 2023-06-24 17:30:39 +02:00 committed by GitHub
parent 2dc89a04d5
commit 26bfe8b3ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,7 +69,7 @@ namespace Toolbox.Library
public byte GetMaxSkinInfluenceCount()
{
return (byte)vertices.Max(t => t.boneIds.Count);
return (byte)vertices.Max(t => t.boneWeights.Count);
}
public Vector3 GetOrigin()