Fix duplicate skeleton folders
This commit is contained in:
parent
f4370ab63a
commit
cc1f05c1f0
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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)
|
||||
|
@ -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)
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user