GFBMDL : Check for valid mesh index
This commit is contained in:
parent
e0cb642183
commit
8d797f42e3
@ -85,7 +85,8 @@ namespace FirstPlugin
|
||||
transform = Skeleton.bones[boneIndex].Transform;
|
||||
}
|
||||
|
||||
genericMesh.Text = Skeleton.bones[(int)group.MeshID].Text;
|
||||
if (group.MeshID < Skeleton.bones.Count && group.MeshID > 0)
|
||||
genericMesh.Text = Skeleton.bones[(int)group.MeshID].Text;
|
||||
Renderer.Meshes.Add(genericMesh);
|
||||
GenericMeshes.Add(genericMesh);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user