1
0
mirror of synced 2025-01-31 12:23:52 +01:00

Fix duplicate skeleton folders

This commit is contained in:
KillzXGaming 2019-03-26 17:14:20 -04:00
parent f4370ab63a
commit cc1f05c1f0
8 changed files with 5 additions and 2 deletions

Binary file not shown.

View File

@ -85,6 +85,7 @@ namespace FirstPlugin
}
return model;
}
public static void ReadModel(FMDL model, Model mdl)
{
if (model == null)
@ -92,7 +93,8 @@ namespace FirstPlugin
model.Text = mdl.Name;
model.Skeleton = new FSKL(mdl.Skeleton);
model.Nodes[2] = model.Skeleton.node;
model.Nodes.RemoveAt(2);
model.Nodes.Add(model.Skeleton.node);
model.Model = mdl;
foreach (Material mat in mdl.Materials)

View File

@ -102,7 +102,8 @@ namespace FirstPlugin
model.Text = mdl.Name;
model.Skeleton = new FSKL(mdl.Skeleton);
model.Nodes[2] = model.Skeleton.node;
model.Nodes.RemoveAt(2);
model.Nodes.Add(model.Skeleton.node);
model.ModelU = mdl;
foreach (Material mat in mdl.Materials.Values)