1
0
mirror of synced 2024-12-01 02:27:22 +01:00

GFBMDL : fix mesh names

This commit is contained in:
KillzXGaming 2019-11-26 21:18:52 -05:00
parent 8d797f42e3
commit cb1d5097b2

View File

@ -83,10 +83,13 @@ namespace FirstPlugin
{ {
genericMesh.BoneIndex = boneIndex; genericMesh.BoneIndex = boneIndex;
transform = Skeleton.bones[boneIndex].Transform; transform = Skeleton.bones[boneIndex].Transform;
genericMesh.Text = Skeleton.bones[boneIndex].Text;
} }
if (group.MeshID < Skeleton.bones.Count && group.MeshID > 0) // if (group.MeshID < Skeleton.bones.Count && group.MeshID > 0)
genericMesh.Text = Skeleton.bones[(int)group.MeshID].Text; // genericMesh.Text = Skeleton.bones[(int)group.MeshID].Text;
Renderer.Meshes.Add(genericMesh); Renderer.Meshes.Add(genericMesh);
GenericMeshes.Add(genericMesh); GenericMeshes.Add(genericMesh);