From 26bfe8b3abcf2a58e30a3701712cf12f3f8f245e Mon Sep 17 00:00:00 2001 From: rollin Date: Sat, 24 Jun 2023 17:30:39 +0200 Subject: [PATCH] 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 --- Switch_Toolbox_Library/Generics/GenericObject.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Switch_Toolbox_Library/Generics/GenericObject.cs b/Switch_Toolbox_Library/Generics/GenericObject.cs index 52f8c30a..ad4839f4 100644 --- a/Switch_Toolbox_Library/Generics/GenericObject.cs +++ b/Switch_Toolbox_Library/Generics/GenericObject.cs @@ -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()