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:
parent
2dc89a04d5
commit
26bfe8b3ab
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user